Skip to content

Commit

Permalink
chore: move filname after conclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
balazs4 committed Apr 13, 2021
1 parent c98596c commit 9e52672
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down

0 comments on commit 9e52672

Please sign in to comment.