Skip to content

Commit

Permalink
Modify unit test to use extracted computeShape function
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-dp committed Jun 20, 2024
1 parent 166fae3 commit 742febf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/typescript/test/client/model/shapes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ test.serial('nested shape is constructed', async (t) => {
}

// @ts-ignore `computeShape` is a protected method
const shape = Post.computeShape(input)
const shape = computeShape(schema, 'Post', input)
const expectedShape = {
tablename: 'Post',
where: `(this."id" IN (3, 'test') OR this."test" LIKE '\\%hello%') AND ((NOT this."id" = 1) AND (NOT this."id" = 2)) AND (this."nbr" = 6 AND this."nbr" = 7) AND (this."title" = 'foo') AND (this."contents" = 'important''')`,
Expand Down

0 comments on commit 742febf

Please sign in to comment.