Upgrade Notifications to fix deprecations and use store
This commit is contained in:
@@ -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'));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user