FEATURE: User Directory, with sorting and time period filter

This commit is contained in:
Robin Ward
2015-03-16 15:14:33 -04:00
parent 6b85d5582c
commit 3d2d224312
47 changed files with 684 additions and 146 deletions

View File

@ -19,7 +19,20 @@ test('find', function() {
store.find('widget', 123).then(function(w2) {
equal(w, w2);
});
});
});
test('find with object id', function() {
const store = createStore();
store.find('widget', {id: 123}).then(function(w) {
equal(w.get('firstObject.name'), 'Trout Lure');
});
});
test('find with query param', function() {
const store = createStore();
store.find('widget', {name: 'Trout Lure'}).then(function(w) {
equal(w.get('firstObject.id'), 123);
});
});
@ -33,7 +46,7 @@ test('update', function() {
test('findAll', function() {
const store = createStore();
store.findAll('widget').then(function(result) {
equal(result.length, 2);
equal(result.get('length'), 2);
const w = result.findBy('id', 124);
equal(w.get('name'), 'Evil Repellant');
});