mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 01:27:22 +00:00
output a better error message
This commit is contained in:
@@ -4,12 +4,10 @@ import * as uploadLib from './upload-lib';
|
||||
|
||||
test('validateSarifFileSchema - valid', t => {
|
||||
const inputFile = __dirname + '/../src/testdata/valid-sarif.sarif';
|
||||
const errors = uploadLib.validateSarifFileSchema(inputFile);
|
||||
t.deepEqual(errors, []);
|
||||
t.true(uploadLib.validateSarifFileSchema(inputFile));
|
||||
});
|
||||
|
||||
test('validateSarifFileSchema - invalid', t => {
|
||||
const inputFile = __dirname + '/../src/testdata/invalid-sarif.sarif';
|
||||
const errors = uploadLib.validateSarifFileSchema(inputFile);
|
||||
t.notDeepEqual(errors, []);
|
||||
t.false(uploadLib.validateSarifFileSchema(inputFile));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user