Skip to content

Commit

Permalink
Fix the stand-alone global name
Browse files Browse the repository at this point in the history
  • Loading branch information
vesln committed Jan 3, 2014
1 parent 95cd9fb commit be59b02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Variables
#

NAME = hydro-chai
KARMA = node_modules/.bin/karma
BROWSER = dist/hydro-chai.js
COV_EXEC = node_modules/.bin/_hydro
Expand All @@ -28,7 +29,7 @@ install: node_modules components build browser
#

browser: node_modules components
@$(COMPONENT_BUILD) -s Hydro -o .
@$(COMPONENT_BUILD) -s $(NAME) -o .
@mv build.js $(BROWSER)

#
Expand Down
6 changes: 3 additions & 3 deletions dist/hydro-chai.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ module.exports = function(hydro, util) {
hydro.set('globals', style, chai[style]);
break;
case 'should':
var should = chai.Should();
if (!root.should) hydro.set('globals', 'should', should);
root.should = undefined;
root.should = chai.should();
break;
}
});
Expand Down Expand Up @@ -360,5 +360,5 @@ require.alias("hydro-chai/index.js", "hydro-chai/index.js");if (typeof exports =
} else if (typeof define == "function" && define.amd) {
define(function(){ return require("hydro-chai"); });
} else {
this["Hydro"] = require("hydro-chai");
this["hydro-chai"] = require("hydro-chai");
}})();

0 comments on commit be59b02

Please sign in to comment.