mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-06-22 10:41:50 +02:00
Start fake test clock at real clock time
Some code relies on the clock having a somewhat sane value, so let's not start at 0.
This commit is contained in:
parent
d5b84d9185
commit
42d437ad25
@ -91,7 +91,7 @@ describe('Remote Frame Buffer Protocol Client', function () {
|
|||||||
after(FakeWebSocket.restore);
|
after(FakeWebSocket.restore);
|
||||||
|
|
||||||
before(function () {
|
before(function () {
|
||||||
this.clock = clock = sinon.useFakeTimers();
|
this.clock = clock = sinon.useFakeTimers(Date.now());
|
||||||
// sinon doesn't support this yet
|
// sinon doesn't support this yet
|
||||||
raf = window.requestAnimationFrame;
|
raf = window.requestAnimationFrame;
|
||||||
window.requestAnimationFrame = setTimeout;
|
window.requestAnimationFrame = setTimeout;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user