Skip to content

Commit 144f2ae

Browse files
committed
fix(fetch): Calling realfetch with correct scope
1 parent 6dba53a commit 144f2ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/yet-another-fetch-mock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class FetchMock {
9191

9292
if (typeof matchingRoute === 'undefined') {
9393
if (this.configuration.enableFallback) {
94-
response = this.realFetch(input, init);
94+
response = this.realFetch.call(this.scope, input, init);
9595
} else {
9696
throw new Error(`Did not find any matching route for url: ${url}`);
9797
}

0 commit comments

Comments
 (0)