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
f61670af6e
commit
cb7d262dfa
@ -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";
|
||||
|
||||
@ -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" },
|
||||
},
|
||||
],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user