mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Remove unneeded lodashBizarro tests.
This commit is contained in:
16
test/test.js
16
test/test.js
@@ -492,7 +492,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
test('should avoid overwritten native methods', 12, function() {
|
||||
test('should avoid overwritten native methods', 9, function() {
|
||||
function Foo() {}
|
||||
|
||||
function message(methodName) {
|
||||
@@ -564,20 +564,6 @@
|
||||
actual = null;
|
||||
}
|
||||
strictEqual(actual, true, message('String#contains'));
|
||||
|
||||
_.each(['trim', 'trimLeft', 'trimRight'], function(methodName) {
|
||||
try {
|
||||
var actual = [
|
||||
lodashBizarro[methodName](whitespace + 'a b c' + whitespace),
|
||||
lodashBizarro[methodName](''),
|
||||
lodashBizarro[methodName]('-_-a-b-c-_-', '_-'),
|
||||
lodashBizarro[methodName]('', '_-')
|
||||
];
|
||||
} catch(e) {
|
||||
actual = null;
|
||||
}
|
||||
ok(_.every(actual, _.isString), message('String#' + methodName));
|
||||
});
|
||||
}
|
||||
else {
|
||||
skipTest(12);
|
||||
|
||||
Reference in New Issue
Block a user