mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 02:42:45 +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:
parent
e7b49c42c4
commit
0b47ef6e86
|
@ -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"
|
||||
)
|
||||
);
|
||||
});
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user