Skip to content

Commit

Permalink
[skip netlify] Update dependency sinon to v14 (video-dev#4695)
Browse files Browse the repository at this point in the history
* [skip netlify] Update dependency sinon to v14

* use existing clock object in gap controller test

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Tom Jenkinson <[email protected]>
  • Loading branch information
3 people authored May 15, 2022
1 parent 179f568 commit 8bcb0a5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"sauce-connect-launcher": "1.3.2",
"selenium-webdriver": "4.1.2",
"semver": "7.3.7",
"sinon": "13.0.1",
"sinon": "14.0.0",
"sinon-chai": "3.7.0",
"typescript": "4.6.4",
"url-toolkit": "2.2.5",
Expand Down
5 changes: 2 additions & 3 deletions tests/unit/controller/gap-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,11 @@ describe('GapController', function () {

it('should trigger reportStall when stalling for 250ms or longer', function () {
setStalling();
const clock = sandbox.useFakeTimers(0);
clock.tick(250);
wallClock.tick(250);
gapController.stalled = 1;
gapController.poll(lastCurrentTime);
expect(reportStallSpy).to.not.have.been.called;
clock.tick(251);
wallClock.tick(251);
gapController.poll(lastCurrentTime);
expect(reportStallSpy).to.have.been.calledOnce;
});
Expand Down

0 comments on commit 8bcb0a5

Please sign in to comment.