mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-08 17:17:56 +08:00
25 lines
559 B
JavaScript
25 lines
559 B
JavaScript
import {Application} from 'spectron';
|
|
|
|
describe('Nylas', ()=> {
|
|
beforeAll((done)=>{
|
|
this.app = new Application({
|
|
path: jasmine.APP_PATH,
|
|
args: jasmine.APP_ARGS,
|
|
});
|
|
this.app.start().then(()=> setTimeout(done, jasmine.BOOT_WAIT));
|
|
});
|
|
|
|
afterEach((done)=> {
|
|
if (this.app && this.app.isRunning()) {
|
|
this.app.stop().then(done);
|
|
}
|
|
});
|
|
|
|
it('boots 4 windows on launch', (done)=> {
|
|
this.app.client.getWindowCount().then((count)=> {
|
|
expect(count).toEqual(jasmine.any(Number));
|
|
done();
|
|
});
|
|
});
|
|
});
|
|
|