Ensure all tests are run

This commit is contained in:
Andrew Eisenberg
2021-12-17 11:43:53 -08:00
parent 56eeb1badb
commit 2d39bee416
3 changed files with 10 additions and 10 deletions

View File

@@ -482,8 +482,8 @@ describe('databases', () => {
});
describe.only('findSourceArchive', function() {
// not sure why, but some of these tests take more than two second to run.
describe('findSourceArchive', function() {
// not sure why, but some of these tests take more than two seconds to run.
this.timeout(5000);
['src', 'output/src_archive'].forEach(name => {

View File

@@ -25,11 +25,11 @@ describe('run-remote-query', function() {
showInputBoxSpy = sandbox.stub(window, 'showInputBox');
getRemoteRepositoryListsSpy = sandbox.stub();
showAndLogErrorMessageSpy = sandbox.stub();
mod = proxyquire('../../run-remote-query', {
'./config': {
mod = proxyquire('../../remote-queries/run-remote-query', {
'../config': {
getRemoteRepositoryLists: getRemoteRepositoryListsSpy
},
'./helpers': {
'../helpers': {
showAndLogErrorMessage: showAndLogErrorMessageSpy
},
});
@@ -134,12 +134,12 @@ describe('run-remote-query', function() {
logSpy = sandbox.stub();
showAndLogErrorMessageSpy = sandbox.stub();
showInformationMessageWithActionSpy = sandbox.stub();
mod = proxyquire('../../run-remote-query', {
'./helpers': {
mod = proxyquire('../../remote-queries/run-remote-query', {
'../helpers': {
showAndLogErrorMessage: showAndLogErrorMessageSpy,
showInformationMessageWithAction: showInformationMessageWithActionSpy
},
'./logging': {
'../logging': {
'logger': {
log: logSpy
}

View File

@@ -7,7 +7,7 @@ import { sarifParser } from '../../sarif-parser';
chai.use(chaiAsPromised);
const expect = chai.expect;
describe.only('sarif parser', function() {
describe('sarif parser', function() {
const sarifDir = path.join(__dirname, 'data/sarif');
it('should parse a valid SARIF file', async () => {
const result = await sarifParser(path.join(sarifDir, 'validSarif.sarif'));
@@ -22,4 +22,4 @@ describe.only('sarif parser', function() {
const result = await sarifParser(path.join(sarifDir, 'emptyResultsSarif.sarif'));
expect(result.runs[0].results).to.be.empty;
});
});
});