@@ -25,7 +25,7 @@ test('buildUnnest returns correct cols, unnest, and values', async (assert) => {
2525 return assert . equal (
2626 JSON . stringify ( { cols, unnest, values} ) ,
2727 JSON . stringify ( {
28- cols : '( "id", "time", "level") ' ,
28+ cols : '"id", "time", "level"' ,
2929 unnest : 'UNNEST($1::uuid[], $2::timestamptz[], $3::int[]) AS t("id", "time", "level")' ,
3030 values : [
3131 [ 'a' , 'b' ] ,
@@ -54,7 +54,7 @@ test('buildUnnest works with default accessors', async (assert) => {
5454 return assert . equal (
5555 JSON . stringify ( { cols, unnest, values} ) ,
5656 JSON . stringify ( {
57- cols : '( "a", "b") ' ,
57+ cols : '"a", "b"' ,
5858 unnest : 'UNNEST($1::int[], $2::text[]) AS t("a", "b")' ,
5959 values : [ [ 1 , 2 ] , [ 'one' , 'two' ] ] ,
6060 } )
@@ -79,7 +79,7 @@ test('buildUnnest handles nulls and missing values safely', async (assert) => {
7979 return assert . equal (
8080 JSON . stringify ( { cols, unnest, values} ) ,
8181 JSON . stringify ( {
82- cols : '( "name", "note") ' ,
82+ cols : '"name", "note"' ,
8383 unnest : 'UNNEST($1::text[], $2::text[]) AS t("name", "note")' ,
8484 values : [ [ 'Alice' , 'Bob' ] , [ null , 'hi' ] ] ,
8585 } )
0 commit comments