Skip to content

Commit

Permalink
Fix app.name test
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Nov 18, 2019
1 parent 54aadbc commit fd0739c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/browser/main_test.js
Expand Up @@ -11,12 +11,13 @@ describe('main process', () => {
const args = __require('browser/args')
const argv = process.argv

const { qualified } = __require('common/release')

before(() => {
process.argv = ['tropy', 'file.tpy']
sinon.stub(process, 'on').returns(process)
sinon.spy(args, 'parse')
sinon.spy(app, 'whenReady')
sinon.stub(app, 'setName')
sinon.stub(app, 'setPath')
sinon.stub(app, 'requestSingleInstanceLock').returns(true)
sinon.stub(app, 'on').returns(app)
Expand All @@ -32,7 +33,6 @@ describe('main process', () => {
args.parse.restore()
app.on.restore()
app.requestSingleInstanceLock.restore()
app.setName.restore()
app.setPath.restore()
app.whenReady.restore()
})
Expand All @@ -45,7 +45,7 @@ describe('main process', () => {
})

it('sets the app name', () => {
expect(app.setName).to.have.been.called
expect(app.name).to.equal(qualified.product)
})

it('sets the data paths', () => {
Expand Down

0 comments on commit fd0739c

Please sign in to comment.