Moved console tests to own file, and switched circular test to use stringify with assertEqual

This commit is contained in:
Aaron Power 2018-08-27 19:59:38 +01:00 committed by Ryan Dahl
parent 0f1db89aa6
commit f43259e5ab
3 changed files with 85 additions and 80 deletions

View file

@ -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") {