mirror of
https://github.com/discourse/discourse.git
synced 2025-06-19 16:11:34 +08:00
Fix broken tests.
This commit is contained in:
@ -290,7 +290,7 @@ test("Mentions", function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test("Category hashtags", () => {
|
test("Category hashtags", () => {
|
||||||
var alwaysTrue = { categoryHashtagLookup: (function() { return "http://test.discourse.org/category-hashtag"; }) };
|
var alwaysTrue = { categoryHashtagLookup: (function() { return ["http://test.discourse.org/category-hashtag", "category-hashtag"]; }) };
|
||||||
|
|
||||||
cookedOptions("Check out #category-hashtag", alwaysTrue,
|
cookedOptions("Check out #category-hashtag", alwaysTrue,
|
||||||
"<p>Check out <a class=\"hashtag\" href=\"http://test.discourse.org/category-hashtag\">#<span>category-hashtag</span></a></p>",
|
"<p>Check out <a class=\"hashtag\" href=\"http://test.discourse.org/category-hashtag\">#<span>category-hashtag</span></a></p>",
|
||||||
|
Reference in New Issue
Block a user