Skip to content

Commit 0467ed4

Browse files
committed
test(telemetry): assert ANSI escape chars for color codes
Signed-off-by: Babak K. Shandiz <babakks@github.com>
1 parent ec4a3ed commit 0467ed4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/telemetry/telemetry_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ func TestLogFlusherWritesNoneMarkerForEmptyPayload(t *testing.T) {
364364
output := buf.String()
365365
assert.Contains(t, output, "Telemetry payload:")
366366
assert.Contains(t, output, "none")
367+
assert.Contains(t, output, "\x1b") // ANSI escape char for color codes
367368
})
368369
}
369370

0 commit comments

Comments
 (0)