Update test for valid SARIF file

This commit is contained in:
marcnjaramillo
2021-11-18 16:05:31 -08:00
parent ca5e5e23e6
commit c3eca5b1b7

View File

@@ -7,11 +7,13 @@ chai.use(chaiAsPromised);
const expect = chai.expect;
describe.only('cliServerTests', function() {
this.timeout(10000);
it('should parse a valid SARIF file', async () => {
const result = await CodeQLCliServer.parseSarif(__dirname + '/data/sarif/validSarif.sarif');
expect(result.runs.length).to.eq(1);
expect(result.version).to.exist;
expect(result.runs).to.exist;
expect(result.runs[0].tool).to.exist;
expect(result.runs[0].tool.driver).to.exist;
});
it('should return an empty array if there are no results', async () => {