mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:42:46 +08:00
FIX: Use new tag routes (#8683)
Commit 1fb7a62 added unambiguous routes for tags. This commit ensures that the new routes are used.
This commit is contained in:
@ -71,7 +71,7 @@ componentTest("default", {
|
||||
await this.subject.fillInFilter("dav");
|
||||
await this.subject.keyboard("enter");
|
||||
assert.ok(
|
||||
DiscourseURL.routeTo.calledWith("/tags/david"),
|
||||
DiscourseURL.routeTo.calledWith("/tag/david"),
|
||||
"it uses lowercase URLs for tags"
|
||||
);
|
||||
}
|
||||
@ -107,7 +107,7 @@ componentTest("synonym", {
|
||||
await this.subject.fillInFilter("robin");
|
||||
await this.subject.keyboard("enter");
|
||||
assert.ok(
|
||||
DiscourseURL.routeTo.calledWith("/tags/eviltrout"),
|
||||
DiscourseURL.routeTo.calledWith("/tag/eviltrout"),
|
||||
"it routes to the target tag"
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user