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() { describe('findSourceArchive', function() {
// not sure why, but some of these tests take more than two second to run. // not sure why, but some of these tests take more than two seconds to run.
this.timeout(5000); this.timeout(5000);
['src', 'output/src_archive'].forEach(name => { ['src', 'output/src_archive'].forEach(name => {

View File

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

View File

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