FEATURE: Custom orders for user fields

This commit is contained in:
Robin Ward
2015-07-30 14:52:53 -04:00
parent 8e603503e6
commit aa6f792ce1
16 changed files with 126 additions and 83 deletions

View File

@ -70,6 +70,14 @@ test('update', function() {
});
});
test('update with a multi world name', function(assert) {
const store = createStore();
return store.update('cool-thing', 123, {name: 'hello'}).then(function(result) {
assert.ok(result);
assert.equal(result.payload.name, 'hello');
});
});
test('findAll', function() {
const store = createStore();
return store.findAll('widget').then(function(result) {
@ -84,7 +92,7 @@ test('destroyRecord', function(assert) {
const store = createStore();
return store.find('widget', 123).then(function(w) {
store.destroyRecord('widget', w).then(function(result) {
ok(result);
assert.ok(result);
});
});
});