fix tests

This commit is contained in:
Zai Shi 2025-07-30 12:24:00 -07:00
parent cb7d262dfa
commit 7a648b276e

View File

@ -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 }) => {