mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 11:54:41 +08:00
REFACTOR: Remove Ember.Controller
in favor of import
This commit is contained in:
@ -1,11 +1,10 @@
|
||||
import Controller from "@ember/controller";
|
||||
import GrantBadgeControllerMixin from "discourse/mixins/grant-badge-controller";
|
||||
import Badge from "discourse/models/badge";
|
||||
|
||||
QUnit.module("mixin:grant-badge-controller", {
|
||||
before: function() {
|
||||
this.GrantBadgeController = Ember.Controller.extend(
|
||||
GrantBadgeControllerMixin
|
||||
);
|
||||
this.GrantBadgeController = Controller.extend(GrantBadgeControllerMixin);
|
||||
|
||||
this.badgeFirst = Badge.create({
|
||||
id: 3,
|
||||
|
Reference in New Issue
Block a user