mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Support adding items to the site map via plugin outlet.
This commit is contained in:
parent
bce12d17c7
commit
38e4defaee
4 changed files with 14 additions and 7 deletions
|
@ -1,6 +1,8 @@
|
|||
var oldMobileView;
|
||||
|
||||
moduleFor("controller:site-map", "controller:site-map", {
|
||||
needs: ['controller:application'],
|
||||
|
||||
setup: function() {
|
||||
oldMobileView = Discourse.Mobile.mobileView;
|
||||
},
|
||||
|
@ -77,7 +79,7 @@ test("categories", function() {
|
|||
var categoryListStub = ["category1", "category2"];
|
||||
sandbox.stub(Discourse.Category, "list").returns(categoryListStub);
|
||||
|
||||
var controller = this.subject();
|
||||
var controller = this.subject({ siteSettings: Discourse.SiteSettings });
|
||||
deepEqual(controller.get("categories"), categoryListStub, "returns the list of categories");
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue