Cleanup _.transform realm test.

This commit is contained in:
John-David Dalton
2016-01-02 08:42:48 -06:00
parent 9b09caa463
commit 19b5ef7c6f

View File

@@ -20817,11 +20817,9 @@
QUnit.test('should create an object from the same realm as `object`', function(assert) {
assert.expect(1);
var objects = _.transform(_, function(result, value, key) {
if (lodashStable.startsWith(key, '_') && lodashStable.isObject(value) && !lodashStable.isElement(value)) {
result.push(value);
}
}, []);
var objects = lodashStable.filter(realm, function(value) {
return lodashStable.isObject(value) && !lodashStable.isElement(value);
});
var expected = lodashStable.map(objects, lodashStable.constant(true));