mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user