File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ dependencies:
19
19
cli_completion : ^0.5.1
20
20
dart_frog_gen : ^2.0.0
21
21
equatable : ^2.0.5
22
- mason : 0.1.0-dev.60
22
+ mason : 0.1.0
23
23
meta : ^1.15.0
24
24
path : ^1.9.0
25
25
pub_updater : ^0.5.0
Original file line number Diff line number Diff line change @@ -98,12 +98,20 @@ void main() {
98
98
any (
99
99
that: predicate <String >((message) {
100
100
final containsError = message.contains (
101
- 'Could not find an option named "invalid-option". ' ,
101
+ 'Could not find an option named ' ,
102
102
);
103
+ // The message should contain the invalid option name but is
104
+ // differet based on the platform it's running on.
105
+ final containsInvalidOption = message.contains (
106
+ '"invalid-option"' ,
107
+ ) ||
108
+ message.contains (
109
+ '"--invalid-option"' ,
110
+ );
103
111
final containsUsage = message.contains (
104
112
'Usage: dart_frog <command> [arguments]' ,
105
113
);
106
- return containsError && containsUsage;
114
+ return containsError && containsInvalidOption && containsUsage;
107
115
}),
108
116
),
109
117
),
You can’t perform that action at this time.
0 commit comments