File tree Expand file tree Collapse file tree 2 files changed +10
-49
lines changed Expand file tree Collapse file tree 2 files changed +10
-49
lines changed Original file line number Diff line number Diff line change 313
313
314
314
echo "This is required - $required"
315
315
~~~
316
+
317
+ # This is an invalid H1, so it will be ignored
318
+
319
+ ## invalid_cmd
320
+
321
+ Everything below an invalid H1 will also be ignored.
322
+
323
+ ~~~bash
324
+ echo hey
325
+ ~~~
316
326
"# ;
317
327
318
328
#[ cfg( test) ]
Original file line number Diff line number Diff line change @@ -134,52 +134,3 @@ Write-Output "Start all services"
134
134
. success ( ) ;
135
135
}
136
136
}
137
-
138
- mod when_another_level_1_heading_is_found {
139
- use super :: * ;
140
-
141
- #[ test]
142
- fn subcommands_above_level_1_work ( ) {
143
- let ( _temp, maskfile_path) = common:: maskfile (
144
- r#"
145
- ## start
146
- ~~~bash
147
- echo "start"
148
- ~~~
149
-
150
- # invalid level 1 heading
151
- "# ,
152
- ) ;
153
-
154
- common:: run_mask ( & maskfile_path)
155
- . cli ( "start" )
156
- . assert ( )
157
- . stdout ( contains ( "start" ) )
158
- . success ( ) ;
159
- }
160
-
161
- #[ test]
162
- fn subcommands_below_level_1_are_ignored ( ) {
163
- let ( _temp, maskfile_path) = common:: maskfile (
164
- r#"
165
- ## start
166
- ~~~bash
167
- echo "start"
168
- ~~~
169
-
170
- # invalid level 1 heading
171
-
172
- ## ignored
173
- ~~~bash
174
- echo "ignored"
175
- ~~~
176
- "# ,
177
- ) ;
178
-
179
- common:: run_mask ( & maskfile_path)
180
- . cli ( "ignored" )
181
- . assert ( )
182
- . stderr ( contains ( "error: Found argument 'ignored' which wasn't expected, or isn't valid in this context" ) )
183
- . failure ( ) ;
184
- }
185
- }
You can’t perform that action at this time.
0 commit comments