mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Discourse.Site
is deprecated
This commit is contained in:
parent
8e3f667d7c
commit
edff796e87
@ -1,5 +1,6 @@
|
|||||||
import createStore from "helpers/create-store";
|
import createStore from "helpers/create-store";
|
||||||
import { discourseModule } from "helpers/qunit-helpers";
|
import { discourseModule } from "helpers/qunit-helpers";
|
||||||
|
import Site from "discourse/models/site";
|
||||||
|
|
||||||
discourseModule("lib:category-link");
|
discourseModule("lib:category-link");
|
||||||
|
|
||||||
@ -68,8 +69,9 @@ QUnit.test("allowUncategorized", assert => {
|
|||||||
name: "uncategorized",
|
name: "uncategorized",
|
||||||
id: 345
|
id: 345
|
||||||
});
|
});
|
||||||
|
|
||||||
sandbox
|
sandbox
|
||||||
.stub(Discourse.Site, "currentProp")
|
.stub(Site, "currentProp")
|
||||||
.withArgs("uncategorized_category_id")
|
.withArgs("uncategorized_category_id")
|
||||||
.returns(345);
|
.returns(345);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user