Skip to content

Commit 2ca52f1

Browse files
committed
fixed graphql tests
1 parent 77d3b3e commit 2ca52f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ihp-graphql/Test/GraphQL/CompilerSpec.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ tests = do
7777
|] }
7878
]
7979
compileGQL mutation arguments `shouldBe` [trimming|
80-
INSERT INTO projects (title, user_id) VALUES ('Hello World', 'dc984c2f-d91c-4143-9091-400ad2333f83') RETURNING json_build_object('id', projects.id, 'title', projects.title)
80+
INSERT INTO projects (user_id, title) VALUES ('dc984c2f-d91c-4143-9091-400ad2333f83', 'Hello World') RETURNING json_build_object('id', projects.id, 'title', projects.title)
8181
|]
8282
it "should compile a delete mutation" do
8383
let mutation = [trimming|
@@ -118,7 +118,7 @@ tests = do
118118
, argumentValue = parseValue [trimming|"df1f54d5-ced6-4f65-8aea-fcd5ea6b9df1"|] }
119119
]
120120
compileGQL mutation arguments `shouldBe` [trimming|
121-
UPDATE projects SET title = 'Hello World', user_id = 'dc984c2f-d91c-4143-9091-400ad2333f83' WHERE id = 'df1f54d5-ced6-4f65-8aea-fcd5ea6b9df1' RETURNING json_build_object('id', projects.id, 'title', projects.title)
121+
UPDATE projects SET user_id = 'dc984c2f-d91c-4143-9091-400ad2333f83', title = 'Hello World' WHERE id = 'df1f54d5-ced6-4f65-8aea-fcd5ea6b9df1' RETURNING json_build_object('id', projects.id, 'title', projects.title)
122122
|]
123123

124124
compileGQL gql arguments = gql

0 commit comments

Comments
 (0)