mirror of
https://github.com/denoland/deno.git
synced 2025-08-02 10:02:23 +00:00
Moved console tests to own file, and switched circular test to use stringify with assertEqual
This commit is contained in:
parent
0f1db89aa6
commit
f43259e5ab
3 changed files with 85 additions and 80 deletions
|
@ -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") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue