Skip to content

Commit

Permalink
Update test ensuring app project recreation with --empty does not del…
Browse files Browse the repository at this point in the history
…ete test folder
  • Loading branch information
victoreronmosele committed Apr 29, 2024
1 parent d9a7cea commit 3a81c61
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2109,15 +2109,15 @@ void main() {
});

testUsingContext('does not remove the test/ directory when recreating an application project with the --empty flag', () async {
await _createAndAnalyzeProject(
await _createProject(
projectDir,
<String>['--no-pub', '--empty'],
<String>[],
);

projectDir.childDirectory('test').childFile('example_test.dart').createSync(recursive: true);

await _createAndAnalyzeProject(
return _createProject(
projectDir,
<String>['--no-pub', '--empty'],
<String>['test/example_test.dart'],
Expand Down

0 comments on commit 3a81c61

Please sign in to comment.