Skip to content

Commit

Permalink
fix test usage of store.recordIsLoaded
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Nov 18, 2016
1 parent 4eda936 commit 84961dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/model-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -953,10 +953,10 @@ module("unit/model - with a simple Person model", {
});

test("can ask if record with a given id is loaded", function(assert) {
assert.equal(store.recordIsLoaded('person', 1), true, 'should have person with id 1');
assert.equal(store.recordIsLoaded('person', 1), true, 'should have person with id 1');
assert.equal(store.recordIsLoaded('person', 4), false, 'should not have person with id 4');
assert.equal(store.recordIsLoaded('person', 4), false, 'should not have person with id 4');
assert.equal(store.hasRecordForId('person', 1), true, 'should have person with id 1');
assert.equal(store.hasRecordForId('person', 1), true, 'should have person with id 1');
assert.equal(store.hasRecordForId('person', 4), false, 'should not have person with id 4');
assert.equal(store.hasRecordForId('person', 4), false, 'should not have person with id 4');
});

test("a listener can be added to a record", function(assert) {
Expand Down

0 comments on commit 84961dc

Please sign in to comment.