From 0e7aca39ae468df1012cc6ff2ef47a77cd55fdd1 Mon Sep 17 00:00:00 2001 From: Mu-An Chiou Date: Thu, 28 Mar 2024 23:33:20 +0800 Subject: [PATCH] Improve test message --- scripts/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test.js b/scripts/test.js index 8707ba5..1807d31 100644 --- a/scripts/test.js +++ b/scripts/test.js @@ -19,7 +19,7 @@ for (const path of files) { notFound.push(key) } } - t.ok(notFound.length === 0, `${notFound.join(', ')} were not found.`) + t.ok(notFound.length === 0, `expected all keywords found, ${notFound.join(', ') || 'none'} were missing.`) t.end() }) }