We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
lastCall
CallLog | undefined
1 parent b63230f commit 17206d7Copy full SHA for 17206d7
packages/fetch-mock/src/CallHistory.ts
@@ -127,7 +127,7 @@ class CallHistory {
127
called(filter?: CallHistoryFilter, options?: RouteConfig): boolean {
128
return Boolean(this.calls(filter, options).length);
129
}
130
- lastCall(filter?: CallHistoryFilter, options?: RouteConfig): CallLog | void {
+ lastCall(filter?: CallHistoryFilter, options?: RouteConfig): CallLog | undefined {
131
return this.calls(filter, options).pop();
132
133
0 commit comments