Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
Merge 9332d8c into e919b8d
Browse files Browse the repository at this point in the history
  • Loading branch information
clebert committed Apr 21, 2018
2 parents e919b8d + 9332d8c commit ec3c879
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions @pageobject/base/src/Test.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,16 @@ describe('Test.run()', () => {
expect(calls).toEqual([1, 2, 3, 4, 5, 6, 7]);
});

it('should throw an adapter-quit error', async () => {
adapter.quit.mockImplementation(async () => {
throw new Error('awaited');
});

await expect(
Test.run(adapter, defaultTimeoutInSeconds, test => undefined)
).rejects.toThrow('awaited');
});

describe('Test.adapter', () => {
it('should be the specified adapter', async () => {
expect.assertions(1);
Expand Down

0 comments on commit ec3c879

Please sign in to comment.