Skip to content

Commit

Permalink
add timing information
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrey-wu committed Dec 30, 2022
1 parent 959cbf3 commit 5259336
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/quizbowl.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function testAnswerType(type) {
return { successful, total };
}

console.time('quizbowl.test.js');
let successful = 0, total = 0;

let { successful: s, total: t } = testAnswerType('formatted');
Expand All @@ -47,3 +48,4 @@ successful += s;
total += t;

console.log(`OVERALL ${successful}/${total} tests successful`);
console.timeEnd('quizbowl.test.js');

0 comments on commit 5259336

Please sign in to comment.