Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed Sep 22, 2014
1 parent 1165046 commit ef3aec0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dist/configurator.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function RegexAssert(expression, expect) {
function ChoiceAssert(choices) {
this.test = function (node, value) {
if (choices && -1 === choices.indexOf(value)) {
throw new AssertError(node, 'ChoiceAssert', 'Given value is not a valid choise, choose from [' + choices.join(',') + ']');
throw new AssertError(node, 'ChoiceAssert', 'Given value is not a valid choice, choose from [' + choices.join(',') + ']');
}
};
}
Expand Down Expand Up @@ -507,7 +507,7 @@ if (typeof define === 'function' && define.amd) {
return configurator;
});
} else if (typeof exports === 'object') {
module.exports = configurator;
module.exports = configurator;
} else {
root.configurator = configurator;
}
Expand Down
4 changes: 2 additions & 2 deletions dist/configurator.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/asserts/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function RegexAssert(expression, expect) {
function ChoiceAssert(choices) {
this.test = function (node, value) {
if (choices && -1 === choices.indexOf(value)) {
throw new AssertError(node, 'ChoiceAssert', 'Given value is not a valid choise, choose from [' + choices.join(',') + ']');
throw new AssertError(node, 'ChoiceAssert', 'Given value is not a valid choice, choose from [' + choices.join(',') + ']');
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if (typeof define === 'function' && define.amd) {
return configurator;
});
} else if (typeof exports === 'object') {
module.exports = configurator;
module.exports = configurator;
} else {
root.configurator = configurator;
}
4 changes: 2 additions & 2 deletions test/helpers/SharedAssertSpecHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ function sharedAssertSpecHelper() {
property1: 5,
gender: 'notagender'
});
}).toThrowError(/Given value is not a valid choise, choose from/);
}).toThrowError(/Given value is not a valid choice, choose from/);

expect(function () {
config.set({
property1: 5,
subscribe: 3
});
}).toThrowError(/Given value is not a valid choise, choose from/);
}).toThrowError(/Given value is not a valid choice, choose from/);
});
});

Expand Down

0 comments on commit ef3aec0

Please sign in to comment.