Permalink
Browse files

Explicitly deregister our substitute.

  • Loading branch information...
mfncooper committed Dec 30, 2012
1 parent c1027a3 commit 984903fe6a1cf90c64f5dd04fa577b9d2b2aef79
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/mockery.functional.js
@@ -397,6 +397,11 @@ module.exports = testCase({
callback();
},
+ tearDown: function (callback) {
+ mockery.deregisterSubstitute('./fixtures/fake_module');
+ callback();
+ },
+
"and mockery is enabled": testCase({
setUp: function (callback) {
mockery.enable();

0 comments on commit 984903f

Please sign in to comment.