Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: 💍 Time tampering tests for _.throttle and _.deobounce
Monkey patch `Date.prototype` getTime and valueOf methods and `Date.now` method in _.debounce and _.throttle test cases. Provide additional test case asserting the outputs before and after monkey patching. Remove the reference to _.now method in test cases as the underlying implementation of library methods don't reference the methods from the `_` object but rather call dependent methods directly. ✅ Closes: #2883
- Loading branch information
Ognjen Jevremovic
committed
Mar 6, 2021
1 parent
a4cc7c0
commit 4d5d198
Showing
1 changed file
with
102 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters