mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
fix tests
This commit is contained in:
parent
cb7d262dfa
commit
7a648b276e
@ -674,10 +674,10 @@ describe("with client access", () => {
|
||||
accessType: "client",
|
||||
method: "PATCH",
|
||||
body: {
|
||||
profile_image_url: "data:image/gif;base64,R0lGODlhAQABAAAAACw=",
|
||||
profile_image_url: "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
|
||||
},
|
||||
});
|
||||
expect(response.body.profile_image_url).toEqual("data:image/gif;base64,R0lGODlhAQABAAAAACw=");
|
||||
expect(response.body.profile_image_url).toMatchInlineSnapshot(`"http://localhost:8120/stack-storage/user-profile-images/<stripped UUID>.gif"`);
|
||||
});
|
||||
|
||||
it("should not be able to update profile image url with invalid base64", async ({ expect }) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user