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:
Dan Ungureanu
2020-01-21 19:23:08 +02:00
committed by GitHub
parent fe6ff1b5ab
commit 89bd7ba45f
25 changed files with 83 additions and 83 deletions

View File

@ -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"
);
}