Make GraphQL tests not depend on JSON serialization (#3238)

Instead compare the logical value the JSON represents
This commit is contained in:
Erik Arvidsson
2017-03-08 15:08:00 -08:00
committed by GitHub
parent 7ac08e0ad1
commit 699c48cefa

View File

@@ -32,7 +32,7 @@ func (suite *QueryGraphQLSuite) SetupTest() {
func (suite *QueryGraphQLSuite) assertQueryResult(v types.Value, q, expect string) {
buff := &bytes.Buffer{}
Query(v, q, suite.vs, buff)
suite.Equal(expect+"\n", string(buff.Bytes()))
suite.JSONEq(expect, buff.String())
}
func (suite *QueryGraphQLSuite) TestScalars() {