Skip to content

Commit

Permalink
simplify switch statement
Browse files Browse the repository at this point in the history
  • Loading branch information
jkroso committed Dec 28, 2013
1 parent ee1bfe3 commit 45c7018
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,13 @@ module.exports = function(hydro, util) {
util.forEach(styles, function(style) {
switch (style) {
case 'expect':
hydro.set('globals', 'expect', chai.expect);
case 'assert':
hydro.set('globals', style, chai[style]);
break;
case 'should':
var should = chai.Should();
if (!root.should) hydro.set('globals', 'should', should);
break;
case 'assert':
hydro.set('globals', 'assert', chai.assert);
break;
}
});

Expand Down

0 comments on commit 45c7018

Please sign in to comment.