mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 00:37:44 +08:00
DEV: Ember linting - disallow Ember.* variable usage (#8782)
This commit is contained in:

committed by
GitHub

parent
88779d849f
commit
499b57a9ed
@ -2,6 +2,7 @@ import { next } from "@ember/runloop";
|
||||
import { moduleForWidget, widgetTest } from "helpers/widget-test";
|
||||
import { createWidget } from "discourse/widgets/widget";
|
||||
import { withPluginApi } from "discourse/lib/plugin-api";
|
||||
import { Promise } from "rsvp";
|
||||
import hbs from "discourse/widgets/hbs-compiler";
|
||||
|
||||
moduleForWidget("base");
|
||||
@ -159,7 +160,7 @@ widgetTest("widget update with promise", {
|
||||
`,
|
||||
|
||||
click() {
|
||||
return new Ember.RSVP.Promise(resolve => {
|
||||
return new Promise(resolve => {
|
||||
next(() => {
|
||||
this.state.name = "Robin";
|
||||
resolve();
|
||||
|
Reference in New Issue
Block a user