Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
do4gr committed May 5, 2018
1 parent 9ad339c commit 204e0ff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class ChangingFromRelationToScalarOrBackSpec extends FlatSpec with Matchers with

val (project, _) = setupProject(schema)

apiServer.query("""mutation{createA(data:{a:"A", b: {b: "B"}}){a}}""", project)
apiServer.query("""mutation{createA(data:{a:"A", b: {create:{b: "B"}}}){a}}""", project)

val as = apiServer.query("""{as{a, b{b}}}""", project)
as.toString should be("""{"data":{"as":[{"a":"A","b":{"b":"B"}}]}}""")
Expand All @@ -119,7 +119,7 @@ class ChangingFromRelationToScalarOrBackSpec extends FlatSpec with Matchers with
| b: String! @unique
|}"""

deployServer.deploySchema(project, schema1)
deployServer.deploySchemaThatMustWarn(project, schema1, force = true)
}

}

0 comments on commit 204e0ff

Please sign in to comment.