Upgrade Notifications to fix deprecations and use store

This commit is contained in:
Robin Ward
2015-05-05 13:44:19 -04:00
parent aab9706b7a
commit 0b65c88003
22 changed files with 133 additions and 323 deletions
@@ -36,7 +36,7 @@ test('updating simultaneously', function() {
expect(2);
const store = createStore();
store.find('widget', 123).then(function(widget) {
return store.find('widget', 123).then(function(widget) {
const firstPromise = widget.update({ name: 'new name' });
const secondPromise = widget.update({ name: 'new name' });
@@ -90,7 +90,7 @@ test('creating simultaneously', function() {
test('destroyRecord', function() {
const store = createStore();
store.find('widget', 123).then(function(widget) {
return store.find('widget', 123).then(function(widget) {
widget.destroyRecord().then(function(result) {
ok(result);
});
@@ -20,6 +20,7 @@ test('pagination support', function() {
equal(rs.get('totalRows'), 4);
ok(rs.get('loadMoreUrl'), 'has a url to load more');
ok(!rs.get('loadingMore'), 'it is not loading more');
ok(rs.get('canLoadMore'));
const promise = rs.loadMore();
@@ -28,6 +29,7 @@ test('pagination support', function() {
ok(!rs.get('loadingMore'), 'it finished loading more');
equal(rs.get('length'), 4);
ok(!rs.get('loadMoreUrl'));
ok(!rs.get('canLoadMore'));
});
});
});