Skip to content

Commit

Permalink
fix(functions): add android 4.0 support in toBeFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Aug 23, 2016
1 parent 270e96b commit 1068001
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions dist/jasmine-matchers.js
Original file line number Diff line number Diff line change
Expand Up @@ -669,12 +669,15 @@ module.exports = function toBeFalse(actual) {
};

},{"./lib/is":12}],31:[function(require,module,exports){
// modules
var is = require('./lib/is');

// public
module.exports = function toBeFunction(actual) {
return typeof actual === 'function';
return is(actual, 'Function');
};

},{}],32:[function(require,module,exports){
},{"./lib/is":12}],32:[function(require,module,exports){
// modules
var toBeNumber = require('./toBeNumber');

Expand Down
5 changes: 4 additions & 1 deletion src/toBeFunction.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// modules
var is = require('./lib/is');

// public
module.exports = function toBeFunction(actual) {
return typeof actual === 'function';
return is(actual, 'Function');
};

0 comments on commit 1068001

Please sign in to comment.