Added (very) basic tests

This commit is contained in:
Nick Johnson 2018-10-17 13:57:49 +01:00
parent 205f82e721
commit 844aa56f63

13
ethgraphql/main_test.go Normal file
View file

@ -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)
}
}