UX: Tweaks to group pages.

This commit is contained in:
Guo Xiang Tan
2018-03-29 14:57:10 +08:00
parent 27f06505b1
commit 52e75eaee9
29 changed files with 468 additions and 253 deletions

View File

@ -49,14 +49,17 @@ QUnit.test('createRecord with a record as attributes returns that record from th
QUnit.test('find', assert => {
const store = createStore();
return store.find('widget', 123).then(function(w) {
assert.equal(w.get('name'), 'Trout Lure');
assert.equal(w.get('id'), 123);
assert.ok(!w.get('isNew'), 'found records are not new');
assert.equal(w.get('extras.hello'), 'world', "extra attributes are set");
// A second find by id returns the same object
store.find('widget', 123).then(function(w2) {
assert.equal(w, w2);
assert.equal(w.get('extras.hello'), 'world', "extra attributes are set");
});
});
});