mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Use more clear condition in unclonable test.
This commit is contained in:
@@ -3090,7 +3090,7 @@
|
||||
if (value) {
|
||||
var object = { 'a': value, 'b': { 'c': value } },
|
||||
actual = func(object),
|
||||
expected = (typeof value == 'function' && !!value.c) ? { 'c': Foo.c } : {};
|
||||
expected = value === Foo ? { 'c': Foo.c } : {};
|
||||
|
||||
assert.deepEqual(actual, object);
|
||||
assert.notStrictEqual(actual, object);
|
||||
|
||||
Reference in New Issue
Block a user