diff --git a/test/test-helpers.ts b/test/test-helpers.ts index bfc665c..9fe4f6a 100644 --- a/test/test-helpers.ts +++ b/test/test-helpers.ts @@ -3,22 +3,22 @@ import { Printer } from 'bite-log'; export function makeTestPrinter(): Printer & { messages: any } { const printer = { messages: { - log: [] as string[], - debug: [] as string[], - warn: [] as string[], - error: [] as string[] + log: [] as any[][], + debug: [] as any[][], + warn: [] as any[][], + error: [] as any[][] }, - log(msg: string) { - printer.messages.log.push(msg); + log(_msg: string) { + printer.messages.log.push([...arguments]); }, - debug(msg: string) { - printer.messages.debug.push(msg); + debug(_msg: string) { + printer.messages.debug.push([...arguments]); }, - warn(msg: string) { - printer.messages.warn.push(msg); + warn(_msg: string) { + printer.messages.warn.push([...arguments]); }, - error(msg: string) { - printer.messages.error.push(msg); + error(_msg: string) { + printer.messages.error.push([...arguments]); } }; return printer;