Skip to content

Commit

Permalink
Formatted packages\patrol_cli\lib\src\test_bundler.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillergood committed Oct 11, 2023
1 parent a640278 commit 2f8fad4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/patrol_cli/lib/src/test_bundler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ ${generateGroupsCode([testFilePath]).split('\n').map((e) => ' $e').join('\n')}
for (final testFilePath in testFilePaths) {
final relativeTestFilePath = _normalizeTestPath(testFilePath);
final testName = _createTestName(relativeTestFilePath);
final relativeTestFilePathWithoutSlash = relativeTestFilePath[0] == '/' ? relativeTestFilePath.replaceFirst('/', '') : relativeTestFilePath;
final relativeTestFilePathWithoutSlash = relativeTestFilePath[0] == '/'
? relativeTestFilePath.replaceFirst('/', '')
: relativeTestFilePath;
imports.add("import '$relativeTestFilePathWithoutSlash' as $testName;");
}

Expand Down

0 comments on commit 2f8fad4

Please sign in to comment.