Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Make Fetch integration test handle UTF-8 content.",
"packageName": "react-native-windows",
"email": "[email protected]",
"dependentChangeType": "patch"
}
5 changes: 5 additions & 0 deletions vnext/TestWebSite/wwwroot/static/utf-8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"IDS_ERR_CHANGES_SAVED": "Изменения сохранены.",
"IDS_ERR_CHANGES_NOT_SAVED": "Ошибка при сохранении изменений.",
"IDS_ERR_SOMETHING_WRONG": "Что-то пошло не так :("
}
1 change: 1 addition & 0 deletions vnext/TestWebSite/wwwroot/static/utf-8.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
IDS_ERR_CHANGES_SAVED : Изменения сохранены
8 changes: 2 additions & 6 deletions vnext/src-win/IntegrationTests/FetchTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,15 @@ const {AppRegistry, View} = ReactNative;
const {TestModule} = ReactNative.NativeModules;

const uri =
'https://raw.githubusercontent.com/microsoft/react-native-windows/main/.yarnrc.yml';
const expectedContent = 'enableScripts: false';
'http://localhost:5555/static/utf-8.txt';
const expectedContent = "IDS_ERR_CHANGES_SAVED : Изменения сохранены\n";

type State = {
uri: string,
expected: string,
content: string,
};

class FetchTest extends React.Component<{...}, State> {
state: State = {
uri: 'https://raw.githubusercontent.com/microsoft/react-native-windows/main/.yarnrc.yml',
expected: 'enableScripts: false',
content: '',
};

Expand Down
Loading