mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-02 01:01:20 +00:00
prettier
This commit is contained in:
parent
026d58387c
commit
e907f1184d
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue