Skip to content

Commit

Permalink
test: use sql tag to construct sql expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Nov 10, 2019
1 parent 7d34273 commit dffd983
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/slonik-utilities/routines/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ test('executes UPDATE query without WHERE condition (SQL token)', async (t) => {
'foo',
{
bar0: 'baz0',
bar1: sql.raw('to_timestamp($1)', ['baz1']),
bar1: sql`to_timestamp(${'baz1'})`,
bar2: 'baz2',
},
);
Expand Down
2 changes: 1 addition & 1 deletion test/slonik-utilities/routines/updateDistinct.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ test('executes UPDATE query without WHERE condition (SQL token)', async (t) => {
'foo',
{
bar0: 'baz0',
bar1: sql.raw('to_timestamp($1)', ['baz1']),
bar1: sql`to_timestamp(${'baz1'})`,
bar2: 'baz2',
},
);
Expand Down

0 comments on commit dffd983

Please sign in to comment.