Skip to content

Commit

Permalink
test/: various lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Bergström committed Oct 23, 2019
1 parent d6520ad commit bffb202
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions test/application-helper.js
@@ -1,6 +1,7 @@
'use strict'

const { Application } = require('spectron')
const electronPath = require('electron')
const tmp = require('tmp')

const defaultArgs = [
Expand Down Expand Up @@ -57,8 +58,7 @@ function entryPoint() {
}
}
return {
/* eslint global-require: off */
path: require('electron'),
path: electronPath,
args: ['app/main.js']
}
}
1 change: 1 addition & 0 deletions test/login-test.js
Expand Up @@ -41,3 +41,4 @@ describe('Logging in', function() {
)
}
})

12 changes: 6 additions & 6 deletions test/test.js
Expand Up @@ -4,11 +4,11 @@ const applicationHelper = require('./application-helper')
const assert = require('assert')

describe('Application launch', function() {
applicationHelper()
applicationHelper()

it('shows main window', function() {
return this.app.client.getWindowCount().then((count) => {
assert.equal(count, 1)
})
})
it('shows main window', function() {
return this.app.client.getWindowCount().then((count) => {
assert.equal(count, 1)
})
})
})

0 comments on commit bffb202

Please sign in to comment.