mirror of
https://github.com/discourse/discourse.git
synced 2025-06-10 03:13:45 +08:00
DEV: Ember linting - disallow Ember.* variable usage (#8782)
This commit is contained in:

committed by
GitHub

parent
88779d849f
commit
499b57a9ed
@ -1,5 +1,6 @@
|
||||
import PreloadStore from "preload-store";
|
||||
import { asyncTestDiscourse } from "helpers/qunit-helpers";
|
||||
import { Promise } from "rsvp";
|
||||
|
||||
QUnit.module("preload-store", {
|
||||
beforeEach() {
|
||||
@ -56,7 +57,7 @@ asyncTestDiscourse(
|
||||
assert.expect(1);
|
||||
|
||||
const finder = function() {
|
||||
return new Ember.RSVP.Promise(function(resolve) {
|
||||
return new Promise(function(resolve) {
|
||||
resolve("hahahah");
|
||||
});
|
||||
};
|
||||
@ -75,7 +76,7 @@ asyncTestDiscourse(
|
||||
assert.expect(1);
|
||||
|
||||
const finder = function() {
|
||||
return new Ember.RSVP.Promise(function(resolve, reject) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
reject("error");
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user