Files
zulip-desktop/tests/index.js
Akash Nimare eac2b92cb6 ⬆️ Test timeout
2016-12-16 15:20:03 +05:30

28 lines
608 B
JavaScript

const assert = require('assert')
const Application = require('spectron').Application
describe('application launch', function () {
this.timeout(15000)
beforeEach(function () {
this.app = new Application({
path: require('electron'),
args: [__dirname + '/../app/main/index.js']
})
return this.app.start()
})
afterEach(function () {
if (this.app && this.app.isRunning()) {
return this.app.stop()
}
})
it('shows an initial window', function () {
return this.app.client.getWindowCount().then(function (count) {
assert.equal(count, 1)
})
})
})