mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 18:23:21 +08:00
24 lines
456 B
Text
24 lines
456 B
Text
|
import {Application} from 'spectron';
|
||
|
|
||
|
describe('Nylas', ()=> {
|
||
|
beforeEach((done)=>{
|
||
|
this.app = new Application({
|
||
|
path: jasmine.APP_PATH,
|
||
|
});
|
||
|
this.app.start().then(done);
|
||
|
});
|
||
|
|
||
|
afterEach((done)=> {
|
||
|
if (this.app && this.app.isRunning()) {
|
||
|
this.app.stop().then(done);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
it('shows an initial window', ()=> {
|
||
|
this.app.client.getWindowCount().then((count)=> {
|
||
|
expect(count).toEqual(1);
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
|