@@ -43,8 +43,10 @@ void main() {
4343
4444 test ('existing step should not regenerate' , () async {
4545 const scenario = 'existing_step' ;
46- final dummyStepPath =
47- p.join (getStepFolderName (scenario), 'the_app_is_running.dart' );
46+ final dummyStepPath = p.join (
47+ getStepFolderName (scenario),
48+ 'the_app_is_running.dart' ,
49+ );
4850 const expectedFileContent = '// existing step' ;
4951 fs.file (dummyStepPath)
5052 ..createSync (recursive: true )
@@ -66,8 +68,11 @@ relativeToTestFolder: false
6668 ..writeAsStringSync (bddOptions);
6769
6870 const scenario = 'existing_step_outside_test_folder' ;
69- final dummyStepPath =
70- p.join (fs.currentDirectory.path, 'my_steps' , 'the_app_is_running.dart' );
71+ final dummyStepPath = p.join (
72+ fs.currentDirectory.path,
73+ 'my_steps' ,
74+ 'the_app_is_running.dart' ,
75+ );
7176 fs.file (dummyStepPath)
7277 ..createSync (recursive: true )
7378 ..writeAsStringSync ('dummy' );
@@ -139,7 +144,7 @@ hookFolderName: hooksFolder
139144 ' try {\n '
140145 " await beforeEach('''Testing scenario''');\n "
141146 ' await theAppIsRunning(tester);\n '
142- ' } on TestFailure {\n '
147+ ' } catch (_) {\n '
143148 ' success = false;\n '
144149 ' rethrow;\n '
145150 ' } finally {\n '
@@ -164,10 +169,7 @@ hookFolderName: hooksFolder
164169 ..writeAsStringSync (bddOptions);
165170
166171 const scenario = 'options' ;
167- expect (
168- () => generate (scenario),
169- throwsException,
170- );
172+ expect (() => generate (scenario), throwsException);
171173 });
172174
173175 test ('merge options' , () async {
@@ -260,9 +262,7 @@ stepFolderName: ./scenarios
260262 const scenario = 'options' ;
261263 final content = await generate (
262264 scenario,
263- const BuilderOptions (< String , dynamic > {
264- 'include' : externalYaml3,
265- }),
265+ const BuilderOptions (< String , dynamic > {'include' : externalYaml3}),
266266 );
267267 expect (content, expected);
268268 });
0 commit comments