mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +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) {
|
QUnit.test('should create an object from the same realm as `object`', function(assert) {
|
||||||
assert.expect(1);
|
assert.expect(1);
|
||||||
|
|
||||||
var objects = _.transform(_, function(result, value, key) {
|
var objects = lodashStable.filter(realm, function(value) {
|
||||||
if (lodashStable.startsWith(key, '_') && lodashStable.isObject(value) && !lodashStable.isElement(value)) {
|
return lodashStable.isObject(value) && !lodashStable.isElement(value);
|
||||||
result.push(value);
|
});
|
||||||
}
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
var expected = lodashStable.map(objects, lodashStable.constant(true));
|
var expected = lodashStable.map(objects, lodashStable.constant(true));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user