All checks were successful
continuous-integration/drone/push Build is passing
21 lines
450 B
Go
21 lines
450 B
Go
package domain_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"gitea.dwysokinski.me/twhelp/core/internal/domain"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestVersionNotFoundError(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
err := domain.VersionNotFoundError{
|
|
VerCode: "pl",
|
|
}
|
|
var _ domain.Error = err
|
|
assert.Equal(t, "version (code=pl) not found", err.Error())
|
|
assert.Equal(t, err.Error(), err.UserError())
|
|
assert.Equal(t, domain.ErrorCodeEntityNotFound, err.Code())
|
|
}
|