Add lodash underscore build tests for isType methods.

Former-commit-id: 80898964d46abebb3acf1e5e3586f4df700cd85b
This commit is contained in:
John-David Dalton
2013-04-17 19:53:14 -07:00
parent 45d59d75ba
commit e80e1dab4d

View File

@@ -961,6 +961,11 @@
strictEqual(actual, false, '_.isEqual should ignore `callback` and `thisArg`: ' + basename);
_.each(['isArray', 'isBoolean', 'isDate', 'isFunction', 'isNumber', 'isRegExp', 'isString'], function(methodName) {
var proto = global[methodName.slice(2)].prototype;
strictEqual(lodash[methodName](Object.create(proto)), false, '_.' + methodName + ' returns `false` for subclassed values: ' + basename);
});
equal(lodash.max('abc'), -Infinity, '_.max should return `-Infinity` for strings: ' + basename);
equal(lodash.min('abc'), Infinity, '_.min should return `Infinity` for strings: ' + basename);