♻️ Rename constancts to not be uppercase
This commit is contained in:
parent
c703a26c10
commit
8a069859ea
4 changed files with 28 additions and 28 deletions
12
app_test.go
12
app_test.go
|
|
@ -22,7 +22,7 @@ func TestDefaultEnvironment(t *testing.T) {
|
|||
a, er := NewApp("0.0.0", c, testmocks.GetStore())
|
||||
assert.NoError(t, er)
|
||||
if assert.NotNil(t, a) {
|
||||
assert.Equal(t, config.DEV, a.Environment())
|
||||
assert.Equal(t, config.Dev, a.Environment())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -31,11 +31,11 @@ func TestGivenEnvironment(t *testing.T) {
|
|||
given config.Env
|
||||
exp config.Env
|
||||
}{
|
||||
{config.DEV, config.DEV},
|
||||
{config.PROD, config.PROD},
|
||||
{config.QA, config.QA},
|
||||
{config.Env("foo"), config.DEV},
|
||||
{config.Env("✨"), config.DEV},
|
||||
{config.Dev, config.Dev},
|
||||
{config.Prod, config.Prod},
|
||||
{config.Qa, config.Qa},
|
||||
{config.Env("foo"), config.Dev},
|
||||
{config.Env("✨"), config.Dev},
|
||||
}
|
||||
|
||||
for _, c := range cases {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue