13 lines
429 B
TypeScript
13 lines
429 B
TypeScript
import test from 'ava';
|
|
|
|
import * as uploadLib from './upload-lib';
|
|
|
|
test('validateSarifFileSchema - valid', t => {
|
|
const inputFile = __dirname + '/../src/testdata/valid-sarif.sarif';
|
|
t.true(uploadLib.validateSarifFileSchema(inputFile));
|
|
});
|
|
|
|
test('validateSarifFileSchema - invalid', t => {
|
|
const inputFile = __dirname + '/../src/testdata/invalid-sarif.sarif';
|
|
t.false(uploadLib.validateSarifFileSchema(inputFile));
|
|
});
|