mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 12:27:59 +00:00
fa9f581d56
* chore: move to new org * logging * fix: org rename caos -> zitadel Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
20 lines
357 B
Go
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)
|
|
}
|