From f6b9c19c45013ff4edff3711686a23532827cf6b Mon Sep 17 00:00:00 2001 From: "Gustavo R. 'Gustavo6046' Rehermann" Date: Thu, 1 Nov 2018 11:40:51 -0300 Subject: [PATCH] Fixed test file line lengths. --- types/ansi/ansi-tests.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/types/ansi/ansi-tests.ts b/types/ansi/ansi-tests.ts index 09d003a563..eda120452d 100644 --- a/types/ansi/ansi-tests.ts +++ b/types/ansi/ansi-tests.ts @@ -20,5 +20,12 @@ Object.keys({ , brightCyan: 96 , brightWhite: 97 }).forEach((color) => { - (<{ [key: string]: (..._: any[]) => ansi.Cursor }> cursor)[color]().bold().write(`Hello, bold ${color.replace(/([a-z])([A-Z])/g, (_: string, l: string, u: string): string => `${l} ${u.toLowerCase()}`)} world!\n`).reset(); + let cname = color.replace(/([a-z])([A-Z])/g, (_: string, l: string, u: string): string => `${l} ${u.toLowerCase()}`); + + (<(...anything: any[]) => ansi.Cursor> cursor[color])() + .bold() + .write( + `Hello, bold ${cname} world!\n` + ) + .reset(); });