Permalink
Browse files

Fix a bug in registering substitutes.

  • Loading branch information...
1 parent d230816 commit 169fb6f0cdaa52627ce48265088bc17089fd5697 @mfncooper committed Nov 17, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 mockery.js
View
4 mockery.js
@@ -143,7 +143,9 @@ function registerSubstitute(mod, subst) {
if (registeredSubstitutes.hasOwnProperty(mod)) {
console.warn("WARNING: Replacing existing substiute for module: " + mod);
}
- registeredSubstitutes[mod] = subst;
+ registeredSubstitutes[mod] = {
+ name: subst
+ };
}
/*

0 comments on commit 169fb6f

Please sign in to comment.