mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 09:51:59 +03:00
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))
|
||
|
}
|