Skip to content

Commit

Permalink
Removing first slash, closes #1428
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillergood authored Oct 11, 2023
1 parent dfc0f99 commit a640278
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 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,8 @@ ${generateGroupsCode([testFilePath]).split('\n').map((e) => ' $e').join('\n')}
for (final testFilePath in testFilePaths) {
final relativeTestFilePath = _normalizeTestPath(testFilePath);
final testName = _createTestName(relativeTestFilePath);
imports.add("import '$relativeTestFilePath' as $testName;");
final relativeTestFilePathWithoutSlash = relativeTestFilePath[0] == '/' ? relativeTestFilePath.replaceFirst('/', '') : relativeTestFilePath;
imports.add("import '$relativeTestFilePathWithoutSlash' as $testName;");
}

return imports.join('\n');
Expand Down

0 comments on commit a640278

Please sign in to comment.