Skip to content

Commit

Permalink
Test: time mocks can be reset back to normal
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeh Fernando committed Dec 14, 2018
1 parent ee0bacf commit 1b7aad2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unit/utils/timeMock.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export function disableTimeMocks() {

global.requestAnimationFrame = originalRequestAnimationFrame;
global.cancelAnimationFrame = originalCancelAnimationFrame;

MockDate.reset();
}
}

Expand Down

0 comments on commit 1b7aad2

Please sign in to comment.