♻️ Use uint8 for Env
This commit is contained in:
parent
d7de194a90
commit
917f919401
6 changed files with 135 additions and 21 deletions
|
|
@ -13,7 +13,7 @@ func TestEnvDefaultsToDev(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestInvalidEnvReturnsDev(t *testing.T) {
|
||||
c := config{env: Env("foobar")}
|
||||
c := config{env: Env(255)}
|
||||
assert.Equal(t, Dev, c.Env())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue