From d0b85ee8703c81c933fdae1daba5a6c234f152aa Mon Sep 17 00:00:00 2001 From: Tom Arra Date: Mon, 2 Dec 2024 11:31:23 -0600 Subject: [PATCH] fixing difference in output per OS --- .../dart_frog_cli/test/src/command_runner_test.dart | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/dart_frog_cli/test/src/command_runner_test.dart b/packages/dart_frog_cli/test/src/command_runner_test.dart index 426268fe8..668fb2588 100644 --- a/packages/dart_frog_cli/test/src/command_runner_test.dart +++ b/packages/dart_frog_cli/test/src/command_runner_test.dart @@ -98,12 +98,18 @@ void main() { any( that: predicate((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 [arguments]', ); - return containsError && containsUsage; + return containsError && contiansInvalidOption && containsUsage; }), ), ),