Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-dldc committed Feb 15, 2023
1 parent 1fd55a6 commit 2deda63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ test('Query with json', () => {
const result = tasksDb.users_tasks
.query()
.innerJoin(tasksDb.tasks.query(), 'tasks', (c) => Expr.equal(c.task_id, c.tasks.id))
.select((c) => ({ userId: c.user_id, task: Expr.ScalarFunctions.json_object(c.tasks) }))
.select((c) => ({ userId: c.user_id, task: Expr.jsonObj(c.tasks) }))
.all();

expect(format(result.sql)).toEqual(sql`
Expand Down

0 comments on commit 2deda63

Please sign in to comment.