Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 64ce414

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /