More backwards compatible changes to sync with ember-cli-test (#11718)
* More backwards compatible changes to sync with ember-cli-test * Update app/assets/javascripts/discourse/app/pre-initializers/discourse-bootstrap.js Co-authored-by: Jarek Radosz <jradosz@gmail.com> * Various router fixes Co-authored-by: Jarek Radosz <jradosz@gmail.com>
This commit is contained in:
+2
-2
@@ -1,11 +1,11 @@
|
||||
import Theme from "admin/models/theme";
|
||||
import { mapRoutes } from "discourse/mapping-router";
|
||||
import { moduleFor } from "ember-qunit";
|
||||
import { registerRouter } from "discourse/mapping-router";
|
||||
import { test } from "qunit";
|
||||
|
||||
moduleFor("controller:admin-customize-themes-show", {
|
||||
beforeEach() {
|
||||
this.registry.register("router:main", mapRoutes());
|
||||
registerRouter(this.registry);
|
||||
},
|
||||
needs: ["controller:adminUser"],
|
||||
});
|
||||
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
import Theme from "admin/models/theme";
|
||||
import { mapRoutes } from "discourse/mapping-router";
|
||||
import { moduleFor } from "ember-qunit";
|
||||
import { registerRouter } from "discourse/mapping-router";
|
||||
import { test } from "qunit";
|
||||
|
||||
moduleFor("controller:admin-customize-themes", {
|
||||
beforeEach() {
|
||||
this.registry.register("router:main", mapRoutes());
|
||||
registerRouter(this.registry);
|
||||
},
|
||||
needs: ["controller:adminUser"],
|
||||
});
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import Badge from "discourse/models/badge";
|
||||
import { mapRoutes } from "discourse/mapping-router";
|
||||
import { moduleFor } from "ember-qunit";
|
||||
import { registerRouter } from "discourse/mapping-router";
|
||||
import { test } from "qunit";
|
||||
|
||||
moduleFor("controller:admin-user-badges", {
|
||||
beforeEach() {
|
||||
this.registry.register("router:main", mapRoutes());
|
||||
registerRouter(this.registry);
|
||||
},
|
||||
needs: ["controller:adminUser"],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user