diff --git a/test/test.js b/test/test.js index 0f7189acc..6efa3cec7 100644 --- a/test/test.js +++ b/test/test.js @@ -890,13 +890,10 @@ assert.deepEqual(actual, [object, object], label); try { - var symObject = Object(symbol); - - // Avoid symbol detection in Babel's `typeof` helper. - symObject.constructor = Object; - + // Avoid buggy symbol detection in Babel's `_typeof` helper. + var symObject = setProperty(Object(symbol), 'constructor', Object); actual = [ - Symbol ? lodashBizarro.clone(symObject) : { 'constructor': Object }, + Symbol ? lodashBizarro.clone(symObject) : {}, Symbol ? lodashBizarro.isEqual(symObject, Object(symbol)) : false, Symbol ? lodashBizarro.toString(symObject) : '' ]; @@ -904,7 +901,7 @@ actual = null; } label = message('_.clone`, `_.isEqual`, and `_.toString', 'Symbol'); - assert.deepEqual(actual, [{ 'constructor': Object }, false, ''], label); + assert.deepEqual(actual, [{}, false, ''], label); try { var map = new lodashBizarro.memoize.Cache;