fix tests

This commit is contained in:
Zai Shi 2025-07-30 11:49:38 -07:00
parent f61670af6e
commit cb7d262dfa
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ import { ensureTeamExists, ensureTeamMembershipExists, ensureUserExists, ensureU
import { sendTeamCreatedWebhook, sendTeamDeletedWebhook, sendTeamUpdatedWebhook } from "@/lib/webhooks";
import { getPrismaClientForTenancy, retryTransaction } from "@/prisma-client";
import { createCrudHandlers } from "@/route-handlers/crud-handler";
import { uploadAndGetImageUpdateInfo } from "@/s3";
import { getS3PublicUrl, uploadAndGetImageUpdateInfo } from "@/s3";
import { runAsynchronouslyAndWaitUntil } from "@/utils/vercel";
import { Prisma } from "@prisma/client";
import { KnownErrors } from "@stackframe/stack-shared";

View File

@ -515,7 +515,7 @@ it("updates a team on the server", async ({ expect }) => {
method: "PATCH",
body: {
display_name: "My Updated Team",
profile_image_url: "data:image/gif;base64,R0lGODlhAQABAAAAACw=",
profile_image_url: "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
server_metadata: {
"test": "test-value"
},
@ -530,7 +530,7 @@ it("updates a team on the server", async ({ expect }) => {
"created_at_millis": <stripped field 'created_at_millis'>,
"display_name": "My Updated Team",
"id": "<stripped UUID>",
"profile_image_url": "data:image/gif;base64,R0lGODlhAQABAAAAACw=",
"profile_image_url": "http://localhost:8120/stack-storage/team-profile-images/<stripped UUID>.gif",
"server_metadata": { "test": "test-value" },
},
"headers": Headers { <some fields may have been hidden> },
@ -550,7 +550,7 @@ it("updates a team on the server", async ({ expect }) => {
"created_at_millis": <stripped field 'created_at_millis'>,
"display_name": "My Updated Team",
"id": "<stripped UUID>",
"profile_image_url": "data:image/gif;base64,R0lGODlhAQABAAAAACw=",
"profile_image_url": "http://localhost:8120/stack-storage/team-profile-images/<stripped UUID>.gif",
"server_metadata": { "test": "test-value" },
},
],