Skip to content

Commit c3eca5b

Browse files
Update test for valid SARIF file
1 parent ca5e5e2 commit c3eca5b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • extensions/ql-vscode/src/vscode-tests/no-workspace

extensions/ql-vscode/src/vscode-tests/no-workspace/cli.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ chai.use(chaiAsPromised);
77
const expect = chai.expect;
88

99
describe.only('cliServerTests', function() {
10-
this.timeout(10000);
1110

1211
it('should parse a valid SARIF file', async () => {
1312
const result = await CodeQLCliServer.parseSarif(__dirname + '/data/sarif/validSarif.sarif');
14-
expect(result.runs.length).to.eq(1);
13+
expect(result.version).to.exist;
14+
expect(result.runs).to.exist;
15+
expect(result.runs[0].tool).to.exist;
16+
expect(result.runs[0].tool.driver).to.exist;
1517
});
1618

1719
it('should return an empty array if there are no results', async () => {

0 commit comments

Comments
 (0)