Skip to content

Commit

Permalink
remove unnecessary changes to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Oct 19, 2022
1 parent 7e9fb1f commit b5e02ef
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions packages/patrol_cli/test/features/drive/test_finder_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,23 @@ void main() {
fs.file('integration_test/app_test.dart').createSync(recursive: true);
fs.file('integration_test/permission_test.dart').createSync();

expect(
testFinder.findAllTests(),
equals([
'${wd.path}/integration_test/app_test.dart',
'${wd.path}/integration_test/permission_test.dart'
]),
);
expect(testFinder.findAllTests(), [
'${wd.path}/integration_test/app_test.dart',
'${wd.path}/integration_test/permission_test.dart'
]);
});

test('finds tests recursively', () {
fs.file('integration_test/app_test.dart').createSync(recursive: true);
fs.file('integration_test/permission_test.dart').createSync();
fs.file('integration_test/webview_test.dart').createSync();
fs
.file('integration_test/auth/sign_in_test.dart')
.createSync(recursive: true);

expect(
testFinder.findAllTests(),
equals([
'${wd.path}/integration_test/app_test.dart',
'${wd.path}/integration_test/permission_test.dart',
'${wd.path}/integration_test/webview_test.dart',
'${wd.path}/integration_test/auth/sign_in_test.dart',
]),
);
expect(testFinder.findAllTests(), [
'${wd.path}/integration_test/app_test.dart',
'${wd.path}/integration_test/permission_test.dart',
'${wd.path}/integration_test/auth/sign_in_test.dart',
]);
});
}

0 comments on commit b5e02ef

Please sign in to comment.