diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/js/tests/specs/systemtags/systemtagsinputfieldSpec.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/js/tests/specs/systemtags/systemtagsinputfieldSpec.js b/core/js/tests/specs/systemtags/systemtagsinputfieldSpec.js index d62ef672f4d..aadf0de53f2 100644 --- a/core/js/tests/specs/systemtags/systemtagsinputfieldSpec.js +++ b/core/js/tests/specs/systemtags/systemtagsinputfieldSpec.js @@ -20,9 +20,10 @@ */ describe('OC.SystemTags.SystemTagsInputField tests', function() { - var view, select2Stub; + var view, select2Stub, clock; beforeEach(function() { + clock = sinon.useFakeTimers(); var $container = $('<div class="testInputContainer"></div>'); select2Stub = sinon.stub($.fn, 'select2'); select2Stub.returnsThis(); @@ -31,6 +32,7 @@ describe('OC.SystemTags.SystemTagsInputField tests', function() { afterEach(function() { select2Stub.restore(); OC.SystemTags.collection.reset(); + clock.restore(); view.remove(); view = undefined; }); |