Skip to content

Commit 3c52f6b

Browse files
author
Michael Lunoe
committed
test(wrapModules): cleaning up loader instance after test
1 parent 21500dc commit 3c52f6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/all.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,6 +1500,7 @@ test('alias chaining with relative deps works', function() {
15001500
test('wrapModules is called when present', function() {
15011501
var fooCalled = 0;
15021502
var annotatorCalled = 0;
1503+
var _loaderWrapModules = loader.wrapModules;
15031504
loader.wrapModules = function(id, callback) {
15041505
annotatorCalled++;
15051506
return callback;
@@ -1526,6 +1527,9 @@ test('wrapModules is called when present', function() {
15261527
resolveRelative: 0,
15271528
pendingQueueLength: 1
15281529
});
1530+
1531+
// clean up
1532+
loader.wrapModules = _loaderWrapModules;
15291533
});
15301534

15311535
test('import require from "require" works', function () {

0 commit comments

Comments
 (0)