-
Notifications
You must be signed in to change notification settings - Fork 918
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modifying html tests to utilize jsx and fixing tests to include all p…
…luginPaths (#5080) Signed-off-by: Zashary Maskus-Lavin <[email protected]>
- Loading branch information
Showing
11 changed files
with
87 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
src/dev/i18n/__fixtures__/extract_default_translations/test_plugin_1/test_file_4.html
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
src/dev/i18n/__fixtures__/extract_default_translations/test_plugin_2/test_file.html
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
src/dev/i18n/__fixtures__/extract_default_translations/test_plugin_2/test_file.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
i18n('plugin_2.message-id', { defaultMessage: 'Message text' }); |
18 changes: 18 additions & 0 deletions
18
src/dev/i18n/__fixtures__/extract_default_translations/test_plugin_4/test_file_4.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/* eslint-disable */ | ||
class Component extends PureComponent { | ||
render() { | ||
return ( | ||
<div data-transclude-slots> | ||
<FormattedMessage | ||
id="plugin_4.id_1" | ||
defaultMessage="Message 4" | ||
/> | ||
</div> | ||
); | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
src/dev/i18n/__snapshots__/extract_default_translations.test.js.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters