mirror of
https://github.com/github/codeql-action.git
synced 2026-05-08 23:00:26 +00:00
18 lines
584 B
TypeScript
18 lines
584 B
TypeScript
import test from 'ava';
|
|
|
|
import { getCLILogger } from './logging';
|
|
import {setupTests} from './testing-utils';
|
|
import * as uploadLib from './upload-lib';
|
|
|
|
setupTests(test);
|
|
|
|
test('validateSarifFileSchema - valid', t => {
|
|
const inputFile = __dirname + '/../src/testdata/valid-sarif.sarif';
|
|
t.notThrows(() => uploadLib.validateSarifFileSchema(inputFile, getCLILogger()));
|
|
});
|
|
|
|
test('validateSarifFileSchema - invalid', t => {
|
|
const inputFile = __dirname + '/../src/testdata/invalid-sarif.sarif';
|
|
t.throws(() => uploadLib.validateSarifFileSchema(inputFile, getCLILogger()));
|
|
});
|