mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Avoid testing constructors which may be shimmed.
This commit is contained in:
@@ -6088,10 +6088,10 @@
|
|||||||
(function() {
|
(function() {
|
||||||
var args = arguments;
|
var args = arguments;
|
||||||
|
|
||||||
test('should return `true` for native methods', 10, function() {
|
test('should return `true` for native methods', 8, function() {
|
||||||
_.each([root.alert, Array, create, freeze, root.prompt, push, slice, Uint8Array, WeakMap], function(func, i) {
|
_.each([root.alert, Array, create, freeze, root.prompt, slice, Uint8Array], function(func) {
|
||||||
if (func) {
|
if (func) {
|
||||||
strictEqual(_.isNative(func), true, String(i));
|
strictEqual(_.isNative(func), true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skipTest();
|
skipTest();
|
||||||
|
|||||||
Reference in New Issue
Block a user