Skip to content

Commit

Permalink
remove invalid filter test
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Apr 4, 2018
1 parent 660537c commit 1403865
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions tests/integration/filter-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,37 +578,6 @@ test('it is possible to filter created records by dirtiness', function(assert) {
});
});

test('it is possible to filter created records by isReloading', function(assert) {
customAdapter(env, DS.Adapter.extend({
findRecord(store, type, id, snapshot) {
return {
data: {
id: 1,
type: 'person',
attributes: {
name: 'Tom Dalle'
}
}
};
}
}));

let filter = store.filter('person', person => {
return !person.get('isReloading');
});

let person = store.createRecord('person', {
id: '1',
name: 'Tom Dale'
});

return run(() => {
return person.reload().then(person => {
assert.equal(filter.get('length'), 1, 'the filter correctly returned a reloaded object');
});
});
});

// SERVER SIDE TESTS
let edited;

Expand Down

0 comments on commit 1403865

Please sign in to comment.