Skip to content

Commit

Permalink
✅ Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Nov 15, 2024
1 parent 4fcf019 commit d467a64
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 2 additions & 0 deletions packages/melos/test/common/intellij_project_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ void main() {
await project.generate();
final modulesXml = readTextFile(project.pathModulesXml);
expect(modulesXml, contains(r'file://$PROJECT_DIR$/melos_root.iml'));
expect(modulesXml, contains(r'$PROJECT_DIR$/test/melos_test.iml'));
},
);

Expand All @@ -52,6 +53,7 @@ void main() {
await project.generate();
final modulesXml = readTextFile(project.pathModulesXml);
expect(modulesXml, contains(r'file://$PROJECT_DIR$/test/melos_test.iml'));
expect(modulesXml, contains(r'$PROJECT_DIR$/test/melos_test.iml'));
},
);
}
4 changes: 1 addition & 3 deletions packages/melos/test/package_filter_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ void main() {
Glob('packages/ab*'),
],
},
path: currentPlatform.isWindows
? p.windows.normalize(path).replaceAll(r'\', r'\\')
: path,
path: path,
);
}

Expand Down
8 changes: 2 additions & 6 deletions packages/melos/test/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ MelosWorkspaceConfig _defaultWorkspaceConfigBuilder(String path) =>
packages: [
createGlob('packages/**', currentDirectoryPath: path),
],
path: currentPlatform.isWindows
? p.windows.normalize(path).replaceAll(r'\', r'\\')
: path,
path: path,
);

Future<Directory> createTemporaryWorkspace({
Expand All @@ -116,9 +114,7 @@ Future<Directory> createTemporaryWorkspace({
final tempDir = createTempDir(p.join(Directory.current.path, '.dart_tool'));
addTearDown(() => deleteEntry(tempDir));

final workspacePath = currentPlatform.isWindows
? p.windows.normalize(tempDir).replaceAll(r'\', r'\\')
: tempDir;
final workspacePath = tempDir;

await createProject(
Directory(workspacePath),
Expand Down

0 comments on commit d467a64

Please sign in to comment.