Skip to content

Commit 8699d36

Browse files
committed
more objectAt
1 parent bc088a1 commit 8699d36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ember-runtime/tests/mixins/array_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,15 +427,15 @@ testBoth("should be clear caches for computed properties that have dependent key
427427
set(this, 'resources', Ember.A());
428428
},
429429

430-
return objectAt(get(get(this, 'resources'), 0), 'common');
431430
common: computed('resources.@each.common', function() {
431+
return get(objectAt(get(this, 'resources'), 0), 'common');
432432
})
433433
});
434434

435435
get(obj, 'resources').pushObject(EmberObject.create({ common: "HI!" }));
436436
equal("HI!", get(obj, 'common'));
437437

438-
objectAt(set(get(obj, 'resources'), 0), 'common', "BYE!");
438+
set(objectAt(get(obj, 'resources'), 0), 'common', "BYE!");
439439
equal("BYE!", get(obj, 'common'));
440440
});
441441

0 commit comments

Comments
 (0)