From dda908da91b48bb846d86ecc10ebbecb41d99554 Mon Sep 17 00:00:00 2001 From: Pine Wu Date: Tue, 3 Mar 2020 21:44:50 -0800 Subject: [PATCH] Improve error output --- test/interpolation/completion/helper.ts | 2 +- test/lsp/completion/helper.ts | 2 +- test/vue3/completion/helper.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/interpolation/completion/helper.ts b/test/interpolation/completion/helper.ts index b8c167afad..9ee68cbdb1 100644 --- a/test/interpolation/completion/helper.ts +++ b/test/interpolation/completion/helper.ts @@ -30,7 +30,7 @@ export async function testCompletion( } else { const match = result.items.find(i => i.label === ei.label); if (!match) { - assert.fail(`Can't find matching item for ${JSON.stringify(ei, null, 2)}`); + assert.fail(`Can't find matching item for\n${JSON.stringify(ei, null, 2)}`); return; } diff --git a/test/lsp/completion/helper.ts b/test/lsp/completion/helper.ts index 9ea15d77b8..2cdf4b16d0 100644 --- a/test/lsp/completion/helper.ts +++ b/test/lsp/completion/helper.ts @@ -30,7 +30,7 @@ export async function testCompletion( } else { const match = result.items.find(i => i.label === ei.label); if (!match) { - assert.fail(`Can't find matching item for ${JSON.stringify(ei, null, 2)}`); + assert.fail(`Can't find matching item for\n${JSON.stringify(ei, null, 2)}`); return; } diff --git a/test/vue3/completion/helper.ts b/test/vue3/completion/helper.ts index b8c167afad..9ee68cbdb1 100644 --- a/test/vue3/completion/helper.ts +++ b/test/vue3/completion/helper.ts @@ -30,7 +30,7 @@ export async function testCompletion( } else { const match = result.items.find(i => i.label === ei.label); if (!match) { - assert.fail(`Can't find matching item for ${JSON.stringify(ei, null, 2)}`); + assert.fail(`Can't find matching item for\n${JSON.stringify(ei, null, 2)}`); return; }