Skip to content

Commit f2ebbc9

Browse files
committed
Make padding an exact check
Signed-off-by: Adameska <[email protected]>
1 parent bfbc053 commit f2ebbc9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/webview/src/component/pods/PodLogs.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,8 @@ describe('PodLogs', () => {
255255
});
256256

257257
const writtenLog = vi.mocked(mockedTerminal.write).mock.calls[0][0] as string;
258-
// 'a' should be padded with spaces to match 'longername' length (10 chars)
259-
// Format: <padding><colored-name>|<log>
260-
expect(writtenLog).toContain('\u001b[36ma\u001b[0m|short name log');
258+
const nineSpaces = ' '; // 9 spaces to pad 'a' to length of 'longername'
259+
expect(writtenLog).equals(nineSpaces + '\u001b[36ma\u001b[0m|short name log\r');
261260
});
262261
});
263262

0 commit comments

Comments
 (0)