Add initial util test
This commit is contained in:
parent
2789712b42
commit
6f11b5d213
1 changed files with 9 additions and 0 deletions
9
src/util.test.ts
Normal file
9
src/util.test.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
import * as fs from 'fs';
|
||||||
|
|
||||||
|
import * as util from './util';
|
||||||
|
|
||||||
|
test('getToolNames', () => {
|
||||||
|
const input = fs.readFileSync(__dirname + '/testdata/tool-names.sarif', 'utf8')
|
||||||
|
const toolNames = util.getToolNames(input);
|
||||||
|
expect(toolNames).toStrictEqual(["CodeQL command-line toolchain", "ESLint"])
|
||||||
|
})
|
||||||
Loading…
Add table
Add a link
Reference in a new issue