Skip to content

Commit

Permalink
refactor(): update incorrect function name
Browse files Browse the repository at this point in the history
  • Loading branch information
jmandreslopez authored and JamieMason committed Jan 30, 2017
1 parent 443dc76 commit 11c4eac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/jasmine-matchers.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ global.any = asymmetricMatchers;
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./api":10,"./asymmetricMatchers":11,"add-matchers":1}],13:[function(require,module,exports){
// public
module.exports = function every(array, truthTest) {
module.exports = function any(array, truthTest) {
for (var i = 0, len = array.length; i < len; i++) {
if (truthTest(array[i])) {
return true;
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"Jacob Ward (https://github.com/jacobwarduk",
"Jamie Mason (https://github.com/JamieMason)",
"Jarek Rencz (https://github.com/jrencz)",
"Jose M Andres (https://github.com/jmandreslopez)",
"Klaus Sevensleeper (https://github.com/k7sleeper)",
"Marcin Wosinek (https://github.com/marcin-wosinek)",
"Mathieu Robin (https://github.com/MathRobin)",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/any.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// public
module.exports = function every(array, truthTest) {
module.exports = function any(array, truthTest) {
for (var i = 0, len = array.length; i < len; i++) {
if (truthTest(array[i])) {
return true;
Expand Down

0 comments on commit 11c4eac

Please sign in to comment.