♻️ Use uint8 for Env

This commit is contained in:
Dan Jones 2025-01-27 15:23:46 -06:00
commit 917f919401
6 changed files with 135 additions and 21 deletions

View file

@ -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())
}