mirror of
https://github.com/github/codeql-action.git
synced 2025-12-29 02:30:11 +08:00
17 lines
510 B
TypeScript
17 lines
510 B
TypeScript
import test from 'ava';
|
|
|
|
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));
|
|
});
|
|
|
|
test('validateSarifFileSchema - invalid', t => {
|
|
const inputFile = __dirname + '/../src/testdata/invalid-sarif.sarif';
|
|
t.throws(() => uploadLib.validateSarifFileSchema(inputFile));
|
|
});
|