From 844aa56f63cb33109c47eec23c821f05701a17fa Mon Sep 17 00:00:00 2001 From: Nick Johnson Date: Wed, 17 Oct 2018 13:57:49 +0100 Subject: [PATCH] Added (very) basic tests --- ethgraphql/main_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ethgraphql/main_test.go diff --git a/ethgraphql/main_test.go b/ethgraphql/main_test.go new file mode 100644 index 0000000000..acdb143f7d --- /dev/null +++ b/ethgraphql/main_test.go @@ -0,0 +1,13 @@ +package ethgraphql + +import ( + "testing" +) + +func TestBuildSchema(t *testing.T) { + // Make sure the schema can be parsed and matched up to the object model. + _, err := NewHandler(nil) + if err != nil { + t.Errorf("Could not construct GraphQL handler: %v", err) + } +}