Replace AST.Selection data constructors

This commit is contained in:
2019-12-25 06:45:29 +01:00
parent bdf711d69f
commit 62f3c34bfe
7 changed files with 114 additions and 113 deletions

View File

@ -35,7 +35,7 @@ spec = do
it "indents block strings in arguments" $
let arguments = [Argument "message" (String "line1\nline2")]
field = Field Nothing "field" arguments [] []
set = OperationSelectionSet $ pure $ SelectionField field
set = OperationSelectionSet $ pure field
operation = DefinitionOperation set
in definition pretty operation `shouldBe` [r|{
field(message: """