Skip to content

Commit

Permalink
stub out tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Maj committed May 8, 2024
1 parent b2bd35f commit bba149b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
// These environments contain lists of global variables which are allowed to be accessed
env: {
// According to https://node.green, the target node version (v10) supports all important ES2018 features. But es2018
// is not an option since it presumably doesn't introduce any new globals over ES2017.
es2017: true,
node: true,
mocha: true,
},
rules: {
// These rules dont like the use of devDependencies - which test code uses often.
'node/no-unpublished-require': 0,
'node/no-missing-require': 0,
},
};
11 changes: 11 additions & 0 deletions test/slack-send-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const { assert } = require('chai');
// const sinon = require('sinon');
// const core = require('@actions/core');
// const github = require('@actions/github');
const hs = require('../src/health-score');

describe('health-score', () => {
it('should have a grep function', async () => {
assert.ok(hs.grep);
});
});

0 comments on commit bba149b

Please sign in to comment.