Skip to content

Commit

Permalink
Merge pull request #2 from givery-technology/fix-number
Browse files Browse the repository at this point in the history
Fix test No
  • Loading branch information
ponkotuy authored Aug 10, 2021
2 parents cb5fada + 9fc084c commit 54c0a97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions track-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const {
EVENT_RUN_END,
EVENT_TEST_FAIL,
EVENT_TEST_PASS,
EVENT_SUITE_END,
} = Mocha.Runner.constants;

class TrackReporter {
Expand All @@ -13,6 +14,9 @@ class TrackReporter {
let n = 1;

runner
.on(EVENT_SUITE_END, () => {
n++;
})
.on(EVENT_TEST_PASS, (test) => {
// Test#fullTitle() returns the suite name(s)
// prepended to the test title
Expand Down

0 comments on commit 54c0a97

Please sign in to comment.