Skip to content

Commit

Permalink
chore: own review
Browse files Browse the repository at this point in the history
  • Loading branch information
blephy committed Jan 28, 2025
1 parent 04ffecc commit 101d108
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/mock/mock-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function mockDispatch (opts, handler) {
const maybeCallHistoryName = mockDispatch[kMockDispatchCallHistoryName]
// a named call history was registered
if (maybeCallHistoryName !== undefined) {
const namedCallHistory = MockCallHistory[kMockCallHistoryGetByName](mockDispatch[kMockDispatchCallHistoryName])
const namedCallHistory = MockCallHistory[kMockCallHistoryGetByName](maybeCallHistoryName)

// guard if mockAgent.close() was called (which delete all call history)
if (namedCallHistory !== undefined) {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,5 @@
"testMatch": [
"<rootDir>/test/jest/**"
]
},
"packageManager": "[email protected]+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0"
}
}

0 comments on commit 101d108

Please sign in to comment.