fix: Update validation message (#315)

This commit is contained in:
Eric Seidel
2023-04-18 21:28:16 -04:00
committed by GitHub
parent dcce46f83a
commit a6e25d4c23
2 changed files with 6 additions and 5 deletions
@@ -61,11 +61,11 @@ class ShorebirdFlutterValidator extends Validator {
final pathFlutterVersion = await _pathFlutterVersion();
if (shorebirdFlutterVersion != pathFlutterVersion) {
final message = """
Shorebird Flutter and the Flutter on your path are different versions.
final message = '''
The version of Flutter that Shorebird includes and the Flutter on your path are different.
\tShorebird Flutter: $shorebirdFlutterVersion
\tSystem Flutter: $pathFlutterVersion
This can cause unexpected behavior if the version gap is wide. If you're seeing this unexpectedly, please let us know on Shorebird discord!""";
This can cause unexpected behavior if you are switching between the tools and the version gap is wide. If you have any trouble, please let us know on Shorebird discord.''';
issues.add(
ValidationIssue(
@@ -167,8 +167,9 @@ Tools • Dart 2.19.6 • DevTools 2.20.1
expect(results.first.severity, ValidationIssueSeverity.warning);
expect(
results.first.message,
contains('Shorebird Flutter and the Flutter on your path are'
' different versions'),
contains(
'The version of Flutter that Shorebird includes and the Flutter on your path are different',
),
);
},
);