diff --git a/types/ansi/ansi-tests.ts b/types/ansi/ansi-tests.ts index dc6ec1f0da..b2625defa5 100644 --- a/types/ansi/ansi-tests.ts +++ b/types/ansi/ansi-tests.ts @@ -22,9 +22,9 @@ Object.keys({ }).forEach((color) => { const cname = color.replace(/([a-z])([A-Z])/g, (_: string, l: string, u: string): string => `${l} ${u.toLowerCase()}`); - (((<(...anything: any[]) => ansi.Cursor> cursor[color])() + ((<(...anything: any[]) => ansi.Cursor> cursor[color])() .bold() - .bg as ansi.Colorer)[color === 'blue' || color === 'brightBlue' ? 'black' : 'blue']() as ansi.Cursor) + .bg)[color === 'blue' || color === 'brightBlue' ? 'black' : 'blue']() .write( `Hello, bold ${cname} world!\n` )