Skip to content

Commit

Permalink
Merge pull request #4613 from pangratz/testi-store-pushi
Browse files Browse the repository at this point in the history
Assert that InternalModel is indeed not materialized on store._push
  • Loading branch information
stefanpenner authored Oct 21, 2016
2 parents 06df840 + df1a2e9 commit cd13f15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/store/push-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@ test("_push returns an instance of InternalModel if an object is pushed", functi
});

assert.ok(pushResult instanceof DS.InternalModel);
assert.notOk(pushResult.record, 'InternalModel is not materialized');
});

test("_push returns an array of InternalModels if an array is pushed", function(assert) {
Expand All @@ -744,6 +745,7 @@ test("_push returns an array of InternalModels if an array is pushed", function(

assert.ok(pushResult instanceof Array);
assert.ok(pushResult[0] instanceof DS.InternalModel);
assert.notOk(pushResult[0].record, 'InternalModel is not materialized');
});


Expand Down

0 comments on commit cd13f15

Please sign in to comment.