mirror of
https://github.com/github/codeql-action.git
synced 2025-12-27 09:40:17 +08:00
11 lines
323 B
TypeScript
11 lines
323 B
TypeScript
import test from 'ava';
|
|
import * as fs from 'fs';
|
|
|
|
import * as util from './util';
|
|
|
|
test('getToolNames', t => {
|
|
const input = fs.readFileSync(__dirname + '/../src/testdata/tool-names.sarif', 'utf8');
|
|
const toolNames = util.getToolNames(input);
|
|
t.deepEqual(toolNames, ["CodeQL command-line toolchain", "ESLint"]);
|
|
});
|