From 9e52672fff190cdf2aba93f39e8770f00a76ac96 Mon Sep 17 00:00:00 2001 From: balazs4 Date: Tue, 13 Apr 2021 23:36:59 +0200 Subject: [PATCH] chore: move filname after conclusion --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index c07a180..89bcc25 100644 --- a/index.js +++ b/index.js @@ -29,16 +29,16 @@ module.exports.test = async (description, assertion = null) => { setImmediate(async () => { try { if (assertion === null) { - log(`SKIPPED\t${name} << ${origin}`); + log(`SKIPPED\t${origin}\t>> ${name}`); return; } const result = assertion(); await result; - log(`PASSED\t${name} << ${origin}`); + log(`PASSED\t${origin}\t>> ${name}`); } catch (err) { - log(`FAILED\t${name} << ${origin}`); + log(`FAILED\t${origin}\t>> ${name}`); const lines = err.stack .split('\n') .map((x) => `\t${x}`)