Skip to content

Commit

Permalink
test(wrapModules): cleaning up loader instance after test
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Lunoe committed Jul 26, 2017
1 parent 21500dc commit 3c52f6b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -1500,6 +1500,7 @@ test('alias chaining with relative deps works', function() {
test('wrapModules is called when present', function() {
var fooCalled = 0;
var annotatorCalled = 0;
var _loaderWrapModules = loader.wrapModules;
loader.wrapModules = function(id, callback) {
annotatorCalled++;
return callback;
Expand All @@ -1526,6 +1527,9 @@ test('wrapModules is called when present', function() {
resolveRelative: 0,
pendingQueueLength: 1
});

// clean up
loader.wrapModules = _loaderWrapModules;
});

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

0 comments on commit 3c52f6b

Please sign in to comment.