diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-07-26 18:05:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 18:05:03 +0200 |
commit | bbe99e65e7f9c18336d6b7818f57584c3f3623e7 (patch) | |
tree | 4ab4e8a54bff96af7073fd6af0fe84abc1889a18 /core | |
parent | 1daf4de5ed65a5700207fa923cc03e09596dbaee (diff) | |
parent | 3df85205b49d75fef8996af07526a81083857615 (diff) | |
download | nextcloud-server-bbe99e65e7f9c18336d6b7818f57584c3f3623e7.tar.gz nextcloud-server-bbe99e65e7f9c18336d6b7818f57584c3f3623e7.zip |
Merge pull request #32733 from nextcloud/dependabot/npm_and_yarn/underscore-1.13.4
Bump underscore from 1.12.0 to 1.13.4
Diffstat (limited to 'core')
-rw-r--r-- | core/js/tests/specs/coreSpec.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/js/tests/specs/coreSpec.js b/core/js/tests/specs/coreSpec.js index 8adea2123e0..7f5a8b10d89 100644 --- a/core/js/tests/specs/coreSpec.js +++ b/core/js/tests/specs/coreSpec.js @@ -20,6 +20,15 @@ */ describe('Core base tests', function() { + var debounceStub + beforeEach(function() { + debounceStub = sinon.stub(_, 'debounce').callsFake(function(callback) { + return function() { + // defer instead of debounce, to make it work with clock + _.defer(callback); + }; + }); + }); afterEach(function() { // many tests call window.initCore so need to unregister global events // ideally in the future we'll need a window.unloadCore() function @@ -28,6 +37,7 @@ describe('Core base tests', function() { $(document).off('beforeunload.main'); OC._userIsNavigatingAway = false; OC._reloadCalled = false; + debounceStub.restore(); }); describe('Base values', function() { it('Sets webroots', function() { |