Skip to content

Commit

Permalink
Demonstrate a workaround for jashkenas/underscore#2918
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Apr 3, 2021
1 parent 0737075 commit e63b7b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ test('debounced increment with timer manipulation v1.12.0', () => {

// Fails, timer manipulation does not work
test('debounced increment with timer manipulation v1.12.1', () => {
_1_12_1.mixin({debounce: _1_12_0.debounce});
jest.useFakeTimers('modern');

var debouncedIncrement = _1_12_1.debounce(increment, 1000, true);
Expand Down

0 comments on commit e63b7b2

Please sign in to comment.