Skip to content

Commit

Permalink
test(leadfoot): fix getTimeout test in IE
Browse files Browse the repository at this point in the history
IE has brokenZeroTimeout set, so the expected 0 timeout should be a 1
  • Loading branch information
jason0x43 committed Sep 2, 2020
1 parent fe62137 commit 1887279
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/leadfoot/tests/functional/Session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,11 @@ registerSuite('functional/Session', () => {

'#getTimeout implicit'() {
return session.getTimeout('implicit').then(function (value: number) {
const expected = session.capabilities.brokenZeroTimeout ? 1 : 0;
assert.strictEqual(
value,
// set to 0 in beforeEach
0,
// set in beforeEach
expected,
'Implicit timeout should be default value'
);
});
Expand Down

0 comments on commit 1887279

Please sign in to comment.