This commit is contained in:
Felix Ableitner 2024-11-28 16:09:20 +01:00
parent 026d58387c
commit e907f1184d

View file

@ -119,7 +119,9 @@ test("Requests with invalid auth should be treated as unauthenticated", async ()
headers: { Authorization: "Bearer foobar" }, headers: { Authorization: "Bearer foobar" },
fetchFunction, fetchFunction,
}); });
await expect(getMyUser(invalid_auth)).rejects.toStrictEqual(Error("incorrect_login")); await expect(getMyUser(invalid_auth)).rejects.toStrictEqual(
Error("incorrect_login"),
);
let site = await getSite(invalid_auth); let site = await getSite(invalid_auth);
expect(site.site_view).toBeDefined(); expect(site.site_view).toBeDefined();