Skip to content

Commit ec11aea

Browse files
committed
pkg/jsonmessage: use string-literals for easier grep'ing
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent fded42c commit ec11aea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎pkg/jsonmessage/jsonmessage_test.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,22 +241,22 @@ func TestDisplayJSONMessagesStream(t *testing.T) {
241241
"",
242242
},
243243
// Without progress & ID
244-
"{ \"status\": \"status\" }": {
244+
`{ "status": "status" }`: {
245245
"status\n",
246246
"status\n",
247247
},
248248
// Without progress, with ID
249-
"{ \"id\": \"ID\",\"status\": \"status\" }": {
249+
`{ "id": "ID","status": "status" }`: {
250250
"ID: status\n",
251251
"ID: status\n",
252252
},
253253
// With progress
254-
"{ \"id\": \"ID\", \"status\": \"status\", \"progress\": \"ProgressMessage\" }": {
254+
`{ "id": "ID", "status": "status", "progress": "ProgressMessage" }`: {
255255
"ID: status ProgressMessage",
256256
fmt.Sprintf("\n%c[%dAID: status ProgressMessage%c[%dB", 27, 1, 27, 1),
257257
},
258258
// With progressDetail
259-
"{ \"id\": \"ID\", \"status\": \"status\", \"progressDetail\": { \"Current\": 1} }": {
259+
`{ "id": "ID", "status": "status", "progressDetail": { "Current": 1} }`: {
260260
"", // progressbar is disabled in non-terminal
261261
fmt.Sprintf("\n%c[%dA%c[2K\rID: status 1B\r%c[%dB", 27, 1, 27, 27, 1),
262262
},

0 commit comments

Comments
 (0)