Skip to content

Commit

Permalink
fixing difference in output per OS
Browse files Browse the repository at this point in the history
  • Loading branch information
tomarra committed Dec 2, 2024
1 parent 8220d6f commit d0b85ee
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/dart_frog_cli/test/src/command_runner_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,18 @@ void main() {
any(
that: predicate<String>((message) {
final containsError = message.contains(
'Could not find an option named "invalid-option".',
'Could not find an option named ',
);
final contiansInvalidOption = message.contains(
'"invalid-option"',
) ||
message.contains(
'"--invalid-option"',
);
final containsUsage = message.contains(
'Usage: dart_frog <command> [arguments]',
);
return containsError && containsUsage;
return containsError && contiansInvalidOption && containsUsage;
}),
),
),
Expand Down

0 comments on commit d0b85ee

Please sign in to comment.