output a better error message
This commit is contained in:
parent
ddee374101
commit
ae301902e1
6 changed files with 35 additions and 21 deletions
|
|
@ -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));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue