mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:42:02 +08: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 { discourseModule } from "helpers/qunit-helpers";
|
||||
import Site from "discourse/models/site";
|
||||
|
||||
discourseModule("lib:category-link");
|
||||
|
||||
|
@ -68,8 +69,9 @@ QUnit.test("allowUncategorized", assert => {
|
|||
name: "uncategorized",
|
||||
id: 345
|
||||
});
|
||||
|
||||
sandbox
|
||||
.stub(Discourse.Site, "currentProp")
|
||||
.stub(Site, "currentProp")
|
||||
.withArgs("uncategorized_category_id")
|
||||
.returns(345);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user