Fix the build.

Ideally, I'll like to test with a different user but that is proving to
be a huge challenge in our acceptance test.
This commit is contained in:
Guo Xiang Tan 2019-01-16 16:34:48 +08:00
parent e7b49c42c4
commit 0b47ef6e86
2 changed files with 1 additions and 9 deletions

View File

@ -16,13 +16,11 @@ QUnit.test("Notifications", async assert => {
await visit("/u/eviltrout/notifications");
assert.ok($("body.user-notifications-page").length, "has the body class");
await visit("/u/test/notifications");
const $links = find(".item.notification a");
assert.ok(
$links[1].href.includes(
"/u/test/notifications/likes-received?acting_username=aquaman"
"/u/eviltrout/notifications/likes-received?acting_username=aquaman"
)
);
});

View File

@ -79,12 +79,6 @@ export default function() {
return response(json);
});
this.get("/u/test.json", () => {
const json = fixturesByUrl["/u/eviltrout.json"];
json.user.username = "test";
return response(json);
});
this.get("/u/eviltrout/summary.json", () => {
return response({
user_summary: {