mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
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:
@ -16,13 +16,11 @@ QUnit.test("Notifications", async assert => {
|
|||||||
await visit("/u/eviltrout/notifications");
|
await visit("/u/eviltrout/notifications");
|
||||||
assert.ok($("body.user-notifications-page").length, "has the body class");
|
assert.ok($("body.user-notifications-page").length, "has the body class");
|
||||||
|
|
||||||
await visit("/u/test/notifications");
|
|
||||||
|
|
||||||
const $links = find(".item.notification a");
|
const $links = find(".item.notification a");
|
||||||
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
$links[1].href.includes(
|
$links[1].href.includes(
|
||||||
"/u/test/notifications/likes-received?acting_username=aquaman"
|
"/u/eviltrout/notifications/likes-received?acting_username=aquaman"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -79,12 +79,6 @@ export default function() {
|
|||||||
return response(json);
|
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", () => {
|
this.get("/u/eviltrout/summary.json", () => {
|
||||||
return response({
|
return response({
|
||||||
user_summary: {
|
user_summary: {
|
||||||
|
Reference in New Issue
Block a user