Merge pull request #155 from KiranNiranjan/spectron-refactor

Refactored spectron tests
This commit is contained in:
Vikas Shashidhar 2017-07-06 17:37:29 +05:30 committed by GitHub
commit 586b569864
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ describe('Tests for Always on top', () => {
});
});
it('should check is always on top', async () => {
it('should check is always on top', () => {
return app.browserWindow.isAlwaysOnTop().then((isAlwaysOnTop) => {
expect(isAlwaysOnTop).toBeFalsy();
}).catch((err) => {

View File

@ -61,7 +61,7 @@ describe('Tests for Bring to front', () => {
});
it('should maximize browser window', () => {
return app.browserWindow.restore().then(async () => {
return app.browserWindow.restore().then(() => {
return app.browserWindow.isMinimized().then((isMinimized) => {
expect(isMinimized).toBeFalsy();
}).catch((err) => {