zitadel/internal/errors/error_test.go
Florian Forster fa9f581d56
chore(v2): move to new org (#3499)
* chore: move to new org

* logging

* fix: org rename caos -> zitadel

Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
2022-04-26 23:01:45 +00:00

20 lines
357 B
Go

package errors_test
import (
"errors"
"testing"
"github.com/stretchr/testify/assert"
caos_errors "github.com/zitadel/zitadel/internal/errors"
)
func TestContains(t *testing.T) {
err := errors.New("hello world")
world := caos_errors.Contains(err, "hello")
assert.True(t, world)
mars := caos_errors.Contains(err, "mars")
assert.False(t, mars)
}