Skip to content

Commit

Permalink
test: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowusr committed Nov 20, 2023
1 parent fc13dec commit 68cc30f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/unit/lib/gui/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const _ = require('lodash');
const proxyquire = require('proxyquire');
const Promise = require('bluebird');

const ToolRunner = require('lib/gui/tool-runner');
const {ToolRunner} = require('lib/gui/tool-runner');
const {stubTool, stubConfig} = require('../../utils');

describe('lib/gui/app', () => {
Expand Down
4 changes: 2 additions & 2 deletions test/unit/lib/gui/tool-runner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ describe('lib/gui/tool-runner/index', () => {
removeReferenceImage,
revertReferenceImage
}
});
}).ToolRunner;

sandbox.stub(reportBuilder, 'imageHandler').value({updateCacheExpectedPath: sinon.stub()});
sandbox.stub(logger, 'warn');
Expand Down Expand Up @@ -312,7 +312,7 @@ describe('lib/gui/tool-runner/index', () => {
const mkUndoTestData_ = async (stubResult, {stateName = 'plain'} = {}) => {
reportBuilder.undoAcceptImage.withArgs(sinon.match({
fullName: 'some-title'
}), 'plain').resolves(stubResult);
}), 'plain').returns(stubResult);
const tests = [{
id: 'some-id',
fullTitle: () => 'some-title',
Expand Down

0 comments on commit 68cc30f

Please sign in to comment.