graphql-engine/cli/pkg/errors/kind_test.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
268 B
Go
Raw Normal View History

package errors
import (
"testing"
"github.com/hasura/graphql-engine/cli/v2/internal/errors"
"github.com/stretchr/testify/assert"
)
func TestIsKind(t *testing.T) {
e := errors.E(errors.Op("test"), errors.KindNetwork)
assert.Equal(t, true, IsKind(Network, e))
}