test(telemetry): assert ANSI escape chars for color codes
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
parent
ec4a3ed6bd
commit
0467ed499a
1 changed files with 1 additions and 0 deletions
|
|
@ -364,6 +364,7 @@ func TestLogFlusherWritesNoneMarkerForEmptyPayload(t *testing.T) {
|
|||
output := buf.String()
|
||||
assert.Contains(t, output, "Telemetry payload:")
|
||||
assert.Contains(t, output, "none")
|
||||
assert.Contains(t, output, "\x1b") // ANSI escape char for color codes
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue