mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Cleanup _.transform realm test.
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user