Skip to content

Commit

Permalink
test: increase coverage for assert/calltracker
Browse files Browse the repository at this point in the history
  • Loading branch information
Lxxyx authored and targos committed Feb 2, 2021
1 parent d2d6121 commit ef2b250
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/parallel/test-assert-calltracker-calls.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,17 @@ assert.throws(
() => callsfunc(),
{ message: msg }
);

{
const tracker = new assert.CallTracker();
const callsNoop = tracker.calls(1);
callsNoop();
tracker.verify();
}

{
const tracker = new assert.CallTracker();
const callsNoop = tracker.calls(undefined, 1);
callsNoop();
tracker.verify();
}

0 comments on commit ef2b250

Please sign in to comment.