switch to using ava

This commit is contained in:
Robert Brignull
2020-05-04 18:28:01 +01:00
parent 0347b72305
commit 572c8bbc0c
10 changed files with 304 additions and 48 deletions

View File

@@ -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"]);
});