From 3383718aac6a5fca4b3a37f7baf8b95bc4cc842a Mon Sep 17 00:00:00 2001 From: ssube Date: Wed, 21 Jul 2021 00:17:39 -0500 Subject: [PATCH] better string formatting --- src/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7eb8243..7b338c1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,11 +13,10 @@ export function over(name: string, strategy: Arbitrary, suite: Suite): return new Promise((res, rej) => { const result = check(property(strategy, (t) => test.call(ctx, t))); if (result.failed) { - console.log(result); if (result.counterexample !== null) { const examples = result.counterexample.map(it => { - if (typeof it === 'string' && it.length === 0) { - return "''"; + if (typeof it === 'string') { + return `'${it}'`; } else { return it; }