graphql-engine/cli/pkg/errors/kind_test.go
Aravind K P 451f252c0f cli: [rfc] improve error handling
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4817
GitOrigin-RevId: 340f8d0cb3df496c1c0df1cc60fe3752dd58c75c
2022-09-21 08:29:37 +00:00

14 lines
268 B
Go

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