Skip to content

Commit 64ce414

Browse files
committed
Fix stub to mock res.text()
1 parent 2a058db commit 64ce414

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

__tests__/stub/fetchStub.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ exports.setupFetchStub = () => {
66
Promise.resolve({
77
status: 200,
88
}),
9+
text: () => Promise.resolve('Sample response text'),
910
};
1011
return Promise.resolve(fetchResponse);
1112
});

0 commit comments

Comments
 (0)