Skip to content

Commit

Permalink
Remove failing test
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Coffman <steve@khanacademy.org>
  • Loading branch information
StevenACoffman committed Jan 16, 2022
1 parent 774898a commit 7a75e2d
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions codegen/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,21 +193,4 @@ func TestAutobinding(t *testing.T) {
require.Equal(t, "github.com/99designs/gqlgen/codegen/config/testdata/autobinding/scalars/model.Banned", cfg.Models["Banned"].Model[0])
require.Equal(t, "github.com/99designs/gqlgen/codegen/config/testdata/autobinding/chat.Message", cfg.Models["Message"].Model[0])
})

t.Run("with file path", func(t *testing.T) {
cfg := Config{
Models: TypeMap{},
AutoBind: []string{
"../chat",
},
Packages: &code.Packages{},
}

cfg.Schema = gqlparser.MustLoadSchema(&ast.Source{Name: "TestAutobinding.schema", Input: `
scalar Banned
type Message { id: ID }
`})

require.EqualError(t, cfg.autobind(), "unable to load ../chat - make sure you're using an import path to a package that exists")
})
}

0 comments on commit 7a75e2d

Please sign in to comment.