Fix test fail in non-browsers.

This commit is contained in:
John-David Dalton
2015-01-09 10:02:35 -08:00
parent f053c4d532
commit 68fc036b7a

View File

@@ -1756,7 +1756,7 @@
notStrictEqual(actual, object);
deepEqual(actual, object);
var expected = typeof value == 'function' ? { 'foo': Klass.foo } : {};
var expected = typeof value == 'function' ? { 'foo': Klass.foo } : (value && {});
deepEqual(func(value), expected);
});