From fd316240f32f536a35aab83b33bbb1fae7a674d9 Mon Sep 17 00:00:00 2001
From: "sourcegraph-commit-signing-app[bot]"
<188111114+sourcegraph-commit-signing-app[bot]@users.noreply.github.com>
Date: Wed, 1 Oct 2025 23:04:39 +0000
Subject: [PATCH] Switch JS assets in FEWS apps to use React 18
---
test/executables/react_18_upgrade_test.dart | 43 +++++++++----------
.../dart_script_updater_test.dart | 3 +-
.../html_script_updater_test.dart | 8 ++--
3 files changed, 26 insertions(+), 28 deletions(-)
diff --git a/test/executables/react_18_upgrade_test.dart b/test/executables/react_18_upgrade_test.dart
index 85924a9b..cd83c979 100644
--- a/test/executables/react_18_upgrade_test.dart
+++ b/test/executables/react_18_upgrade_test.dart
@@ -29,11 +29,11 @@ void main() {
script: react18CodemodScript,
input: d.dir('project', [
d.file('dev.html', /*language=html*/ '''
-
- '''),
+
+'''),
d.file('dev_with_addons.html', /*language=html*/ '''
-
- '''),
+
+'''),
]),
expectedOutput: d.dir('project', [
d.file('dev.html', /*language=html*/ '''
@@ -49,11 +49,11 @@ void main() {
script: react18CodemodScript,
input: d.dir('project', [
d.file('prod.html', /*language=html*/ '''
-
- '''),
+
+'''),
d.file('prod_with_addons.html', /*language=html*/ '''
-
- ''')
+
+''')
]),
expectedOutput: d.dir('project', [
d.file('prod.html', /*language=html*/ '''
@@ -71,11 +71,11 @@ void main() {
script: react18CodemodScript,
input: d.dir('project', [
d.file('dev.html', /*language=html*/ '''
-
- '''),
+
+'''),
d.file('dev_with_addons.html', /*language=html*/ '''
-
- '''),
+
+'''),
]),
expectedOutput: d.dir('project', [
d.file('dev.html', /*language=html*/ '''
@@ -91,11 +91,11 @@ void main() {
script: react18CodemodScript,
input: d.dir('project', [
d.file('prod.html', /*language=html*/ '''
-
- '''),
+
+'''),
d.file('prod_with_addons.html', /*language=html*/ '''
-
- ''')
+
+''')
]),
expectedOutput: d.dir('project', [
d.file('prod.html', /*language=html*/ '''
@@ -114,10 +114,10 @@ void main() {
input: d.dir('project', [
d.file('main.dart', /*language=dart*/ '''
List _reactHtmlHeaders = const [
- '',
- '',
- '',
- '',
+ '',
+ '',
+ '',
+ '',
];
''')
]),
@@ -140,8 +140,7 @@ void main() {
{{testName}}
-
-
+
diff --git a/test/rmui_bundle_updater_suggestors/dart_script_updater_test.dart b/test/rmui_bundle_updater_suggestors/dart_script_updater_test.dart
index 833df717..d8eaa029 100644
--- a/test/rmui_bundle_updater_suggestors/dart_script_updater_test.dart
+++ b/test/rmui_bundle_updater_suggestors/dart_script_updater_test.dart
@@ -405,8 +405,7 @@ void main() {
{{testName}}
-
-
+
diff --git a/test/rmui_bundle_updater_suggestors/html_script_updater_test.dart b/test/rmui_bundle_updater_suggestors/html_script_updater_test.dart
index a8378323..c446999a 100644
--- a/test/rmui_bundle_updater_suggestors/html_script_updater_test.dart
+++ b/test/rmui_bundle_updater_suggestors/html_script_updater_test.dart
@@ -128,7 +128,7 @@ void main() {
' \n'
' \n'
' \n'
- ' \n'
+ ' \n'
' \n'
' \n'
' \n'
@@ -141,7 +141,7 @@ void main() {
' \n'
' \n'
' \n'
- ' \n'
+ ' \n'
' \n'
' \n'
' \n'
@@ -167,7 +167,7 @@ void main() {
' \n'
' \n'
' \n'
- ' \n'
+ ' \n'
' \n'
' \n'
' \n'
@@ -180,7 +180,7 @@ void main() {
' \n'
' \n'
' \n'
- ' \n'
+ ' \n'
' \n'
' \n'
' \n'