Skip to content

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellockyer committed Oct 14, 2022
1 parent 087cf1e commit f39c66c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions test/unit/commands/start-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const createConfigStub = require('../../utils/config-stub');
const Instance = require('../../../lib/instance');
const System = require('../../../lib/system');
const UI = require('../../../lib/ui');
const DoctorCommand = require('../../../lib/commands/doctor');

const modulePath = '../../../lib/commands/start';

Expand Down Expand Up @@ -34,9 +33,9 @@ describe('Unit: Commands > Start', function () {

beforeEach(function () {
StartCommand = proxyquire(modulePath, {
'../utils/get-instance': sinon.stub().callsFake(() => returnedInstance),
'../utils/get-instance': sinon.stub().callsFake(() => returnedInstance)
});
})
});

afterEach(() => {
process.argv = oldArgv;
Expand Down
4 changes: 2 additions & 2 deletions test/unit/commands/stop-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('Unit: Commands > Stop', function () {
await stop.run({name: 'testing'});

expect(getInstance.calledOnce).to.be.true;
expect(getInstance.args[0][0]?.name).to.equal('testing');
expect(getInstance.args[0][0].name).to.equal('testing');
expect(isRunning.calledOnce).to.be.true;
expect(log.calledOnce).to.be.true;
});
Expand All @@ -78,7 +78,7 @@ describe('Unit: Commands > Stop', function () {
await cmd.run({name: 'testing'});

expect(getInstance.calledOnce).to.be.true;
expect(getInstance.args[0][0]?.name).to.equal('testing');
expect(getInstance.args[0][0].name).to.equal('testing');
expect(isRunning.calledOnce).to.be.true;
expect(run.calledOnce).to.be.true;
expect(stop.calledOnce).to.be.true;
Expand Down

0 comments on commit f39c66c

Please sign in to comment.