mirror of
https://github.com/github/codeql-action.git
synced 2026-01-06 22:50:17 +08:00
switch to using ava
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import test from 'ava';
|
||||
import * as fs from 'fs';
|
||||
|
||||
import * as util from './util';
|
||||
|
||||
test('getToolNames', () => {
|
||||
const input = fs.readFileSync(__dirname + '/testdata/tool-names.sarif', 'utf8')
|
||||
test('getToolNames', t => {
|
||||
const input = fs.readFileSync(__dirname + '/../src/testdata/tool-names.sarif', 'utf8');
|
||||
const toolNames = util.getToolNames(input);
|
||||
expect(toolNames).toStrictEqual(["CodeQL command-line toolchain", "ESLint"])
|
||||
})
|
||||
t.deepEqual(toolNames, ["CodeQL command-line toolchain", "ESLint"]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user