mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Add _.support unit tests and remove _.support from the lodash underscore build.
Former-commit-id: 986c02d5363329f16cde720430b26edb6bc865f0
This commit is contained in:
31
test/test.js
31
test/test.js
@@ -2244,7 +2244,6 @@
|
||||
});
|
||||
}(1, 2, 3));
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('lodash.some');
|
||||
@@ -2329,6 +2328,36 @@
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('lodash.support');
|
||||
|
||||
(function() {
|
||||
test('should contain properties with boolean values', function() {
|
||||
var props = [
|
||||
'argsObject',
|
||||
'argsClass',
|
||||
'enumPrototypes',
|
||||
'fastBind',
|
||||
'fastKeys',
|
||||
'ownLast',
|
||||
'nonEnumArgs',
|
||||
'nonEnumShadows',
|
||||
'spliceObjects',
|
||||
'unindexedChars',
|
||||
'nodeClass'
|
||||
];
|
||||
|
||||
_.each(props, function(prop) {
|
||||
if (_.has(_.support, prop)) {
|
||||
equal(typeof _.support[prop], 'boolean');
|
||||
} else {
|
||||
skipTest();
|
||||
}
|
||||
});
|
||||
});
|
||||
}());
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('lodash.template');
|
||||
|
||||
(function() {
|
||||
|
||||
Reference in New Issue
Block a user