mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
14 lines
402 B
TypeScript
14 lines
402 B
TypeScript
import test from 'ava';
|
|
import * as fs from 'fs';
|
|
|
|
import {silenceDebugOutput} from './testing-utils';
|
|
import * as util from './util';
|
|
|
|
silenceDebugOutput(test);
|
|
|
|
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"]);
|
|
});
|