Skip to content

Commit

Permalink
Update expectation in serverless-framework-lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
aqrln committed Nov 15, 2024
1 parent 8d99280 commit ad4f386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platforms-serverless/serverless-framework-lambda/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ async function main() {

const actual = (data.$response.data as any).Payload
const binaryString = process.env.PRISMA_CLIENT_ENGINE_TYPE === 'binary'
? `,"files":["default.d.ts","default.js","deno","edge.d.ts","edge.js","index-browser.js","index.d.ts","index.js","package.json","query-engine-rhel-openssl-1.0.x","schema.prisma","wasm.d.ts","wasm.js"]`
: `,"files":["default.d.ts","default.js","deno","edge.d.ts","edge.js","index-browser.js","index.d.ts","index.js","libquery_engine-rhel-openssl-1.0.x.so.node","package.json","schema.prisma","wasm.d.ts","wasm.js"]`
? `,"files":["default.d.ts","default.js","deno","edge.d.ts","edge.js","index-browser.js","index.d.ts","index.js","package.json","query-engine-rhel-openssl-3.0.x","schema.prisma","wasm.d.ts","wasm.js"]`
: `,"files":["default.d.ts","default.js","deno","edge.d.ts","edge.js","index-browser.js","index.d.ts","index.js","libquery_engine-rhel-openssl-3.0.x.so.node","package.json","schema.prisma","wasm.d.ts","wasm.js"]`
const expect = `{"version":"${Prisma.prismaVersion.client}","createUser":{"id":"12345","email":"[email protected]","name":"Alice"},"updateUser":{"id":"12345","email":"[email protected]","name":"Bob"},"users":{"id":"12345","email":"[email protected]","name":"Bob"},"deleteManyUsers":{"count":1}${binaryString}}`

if (actual !== expect) {
Expand Down

0 comments on commit ad4f386

Please sign in to comment.