Move identity map into the store, shouldn't have been in the adapter

This commit is contained in:
Robin Ward
2015-03-06 12:56:32 -05:00
parent ecb553af3f
commit 7c25efc095
5 changed files with 122 additions and 88 deletions

View File

@ -23,6 +23,13 @@ test('find', function() {
});
});
test('update', function() {
const store = createStore();
store.update('widget', 123, {name: 'hello'}).then(function(result) {
ok(result);
});
});
test('findAll', function() {
const store = createStore();
store.findAll('widget').then(function(result) {
@ -34,7 +41,9 @@ test('findAll', function() {
test('destroyRecord', function() {
const store = createStore();
store.destroyRecord('widget', 124).then(function(result) {
ok(result);
store.find('widget', 123).then(function(w) {
store.destroyRecord('widget', w).then(function(result) {
ok(result);
});
});
});