mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
Move _.support tests to be in alphebetic API order.
This commit is contained in:
70
test/test.js
70
test/test.js
@@ -12278,41 +12278,6 @@
|
|||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
QUnit.module('lodash.support');
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
test('should contain properties with boolean values', 1, function() {
|
|
||||||
ok(_.every(_.values(_.support), function(value) {
|
|
||||||
return value === true || value === false;
|
|
||||||
}));
|
|
||||||
});
|
|
||||||
|
|
||||||
test('should not contain minified properties (test production builds)', 1, function() {
|
|
||||||
var props = [
|
|
||||||
'argsTag',
|
|
||||||
'argsObject',
|
|
||||||
'dom',
|
|
||||||
'enumErrorProps',
|
|
||||||
'enumPrototypes',
|
|
||||||
'fastBind',
|
|
||||||
'funcDecomp',
|
|
||||||
'funcNames',
|
|
||||||
'hostObject',
|
|
||||||
'nodeTag',
|
|
||||||
'nonEnumArgs',
|
|
||||||
'nonEnumShadows',
|
|
||||||
'nonEnumStrings',
|
|
||||||
'ownLast',
|
|
||||||
'spliceObjects',
|
|
||||||
'unindexedChars'
|
|
||||||
];
|
|
||||||
|
|
||||||
ok(_.isEmpty(_.difference(_.keys(_.support), props)));
|
|
||||||
});
|
|
||||||
}());
|
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
QUnit.module('lodash.startsWith');
|
QUnit.module('lodash.startsWith');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
@@ -12390,6 +12355,41 @@
|
|||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
QUnit.module('lodash.support');
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
test('should contain properties with boolean values', 1, function() {
|
||||||
|
ok(_.every(_.values(_.support), function(value) {
|
||||||
|
return value === true || value === false;
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
|
||||||
|
test('should not contain minified properties (test production builds)', 1, function() {
|
||||||
|
var props = [
|
||||||
|
'argsTag',
|
||||||
|
'argsObject',
|
||||||
|
'dom',
|
||||||
|
'enumErrorProps',
|
||||||
|
'enumPrototypes',
|
||||||
|
'fastBind',
|
||||||
|
'funcDecomp',
|
||||||
|
'funcNames',
|
||||||
|
'hostObject',
|
||||||
|
'nodeTag',
|
||||||
|
'nonEnumArgs',
|
||||||
|
'nonEnumShadows',
|
||||||
|
'nonEnumStrings',
|
||||||
|
'ownLast',
|
||||||
|
'spliceObjects',
|
||||||
|
'unindexedChars'
|
||||||
|
];
|
||||||
|
|
||||||
|
ok(_.isEmpty(_.difference(_.keys(_.support), props)));
|
||||||
|
});
|
||||||
|
}());
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
QUnit.module('lodash.tap');
|
QUnit.module('lodash.tap');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user