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 May 1, 2021
1 parent 8ed0c17 commit 55a7b0c
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 55a7b0c

Please sign in to comment.