mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
451f252c0f
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4817 GitOrigin-RevId: 340f8d0cb3df496c1c0df1cc60fe3752dd58c75c
14 lines
268 B
Go
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))
|
|
}
|