@@ -122,7 +122,7 @@ func TestEnvCheck_Run(t *testing.T) {
122122 Getter : & mockEnvGetter {Vars : map [string ]string {"DATABASE_URL" : "mysql://localhost:3306/db" }},
123123 },
124124 wantStatus : check .StatusFail ,
125- wantDetail : `value does not match pattern "^postgres://"` ,
125+ wantDetail : `"mysql://localhost:3306/db" does not match pattern "^postgres://"` ,
126126 },
127127
128128 // --exact flag tests
@@ -143,7 +143,7 @@ func TestEnvCheck_Run(t *testing.T) {
143143 Getter : & mockEnvGetter {Vars : map [string ]string {"NODE_ENV" : "development" }},
144144 },
145145 wantStatus : check .StatusFail ,
146- wantDetail : `value does not equal "production"` ,
146+ wantDetail : `"development" does not equal "production"` ,
147147 },
148148
149149 // --one-of flag tests
@@ -230,7 +230,7 @@ func TestEnvCheck_Run(t *testing.T) {
230230 Getter : & mockEnvGetter {Vars : map [string ]string {"PATH" : "/opt/bin" }},
231231 },
232232 wantStatus : check .StatusFail ,
233- wantDetail : `value does not start with "/usr"` ,
233+ wantDetail : `"/opt/bin" does not start with "/usr"` ,
234234 },
235235
236236 // --ends-with flag tests
@@ -251,7 +251,7 @@ func TestEnvCheck_Run(t *testing.T) {
251251 Getter : & mockEnvGetter {Vars : map [string ]string {"CONFIG" : "/app/config.json" }},
252252 },
253253 wantStatus : check .StatusFail ,
254- wantDetail : `value does not end with ".yaml"` ,
254+ wantDetail : `"/app/config.json" does not end with ".yaml"` ,
255255 },
256256
257257 // --contains flag tests
@@ -272,7 +272,7 @@ func TestEnvCheck_Run(t *testing.T) {
272272 Getter : & mockEnvGetter {Vars : map [string ]string {"URL" : "https://other.com/api" }},
273273 },
274274 wantStatus : check .StatusFail ,
275- wantDetail : `value does not contain "example"` ,
275+ wantDetail : `"https://other.com/api" does not contain "example"` ,
276276 },
277277
278278 // --is-numeric flag tests
@@ -302,7 +302,7 @@ func TestEnvCheck_Run(t *testing.T) {
302302 Getter : & mockEnvGetter {Vars : map [string ]string {"PORT" : "not-a-number" }},
303303 },
304304 wantStatus : check .StatusFail ,
305- wantDetail : "value is not numeric" ,
305+ wantDetail : `"not-a-number" is not numeric` ,
306306 },
307307
308308 // --min-len flag tests
@@ -505,7 +505,7 @@ func TestEnvCheck_Run(t *testing.T) {
505505 Getter : & mockEnvGetter {Vars : map [string ]string {"BAD" : `{key: value}` }},
506506 },
507507 wantStatus : check .StatusFail ,
508- wantDetail : " value is not valid JSON" ,
508+ wantDetail : `"{key: value}" is not valid JSON` ,
509509 },
510510
511511 // --is-bool flag tests
0 commit comments