-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Filip Maj
committed
May 8, 2024
1 parent
b2bd35f
commit bba149b
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); | ||
}); |