diff options
author | Aaron Power <theaaronepower@gmail.com> | 2018-08-27 19:59:38 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-08-27 17:18:37 -0400 |
commit | f43259e5abdbf8f80418382349da79b8426dff27 (patch) | |
tree | dd0684f633470f7f55becee738027bb0f3e602f7 /js/console.ts | |
parent | 0f1db89aa664fe05efae2136d7456465403df30f (diff) |
Moved console tests to own file, and switched circular test to use stringify with assertEqual
Diffstat (limited to 'js/console.ts')
-rw-r--r-- | js/console.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/console.ts b/js/console.ts index c49a7621d..e08fc445e 100644 --- a/js/console.ts +++ b/js/console.ts @@ -13,7 +13,7 @@ function getClassInstanceName(instance: any): string { } // tslint:disable-next-line:no-any -export function stringify(ctx: ConsoleContext, value: any): string { +function stringify(ctx: ConsoleContext, value: any): string { switch (typeof value) { case "string": return value; @@ -95,7 +95,7 @@ function stringifyWithQuotes(ctx: ConsoleContext, value: any): string { } // tslint:disable-next-line:no-any -function stringifyArgs(args: any[]): string { +export function stringifyArgs(args: any[]): string { const out: string[] = []; for (const a of args) { if (typeof a === "string") { |