Skip to content

Commit

Permalink
chore(deps): bump mason from 0.1.0-dev.60 to 0.1.0 in /packages/dart_…
Browse files Browse the repository at this point in the history
…frog_cli (#1602)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Arra <[email protected]>
  • Loading branch information
dependabot[bot] and tomarra authored Dec 6, 2024
1 parent 4d1d638 commit f7bad76
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/dart_frog_cli/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies:
cli_completion: ^0.5.1
dart_frog_gen: ^2.0.0
equatable: ^2.0.5
mason: 0.1.0-dev.60
mason: 0.1.0
meta: ^1.15.0
path: ^1.9.0
pub_updater: ^0.5.0
Expand Down
12 changes: 10 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,20 @@ 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 ',
);
// The message should contain the invalid option name but is
// differet based on the platform it's running on.
final containsInvalidOption = message.contains(
'"invalid-option"',
) ||
message.contains(
'"--invalid-option"',
);
final containsUsage = message.contains(
'Usage: dart_frog <command> [arguments]',
);
return containsError && containsUsage;
return containsError && containsInvalidOption && containsUsage;
}),
),
),
Expand Down

0 comments on commit f7bad76

Please sign in to comment.