Skip to content

Commit

Permalink
fix: doubled test
Browse files Browse the repository at this point in the history
  • Loading branch information
chedwin41 authored and MobiliteDev committed Jan 21, 2025
1 parent 56e0d52 commit 6d2e1a5
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions packages/custom_lint/test/src/workspace_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2222,46 +2222,6 @@ publish_to: 'none'
dependencies:
plugin1: ">=1.5.0 <2.0.0"
''');
});
test(
'If a dependency comes from a custom hosted source, the generated pubspec.yaml should contain the hosted source',
() async {
final workingDir = await createSimpleWorkspace([
Pubspec(
'a',
dependencies: {
'custom_lint_builder': HostedDependency(
hosted: HostedDetails(
'custom_lint_builder',
Uri.parse('https://custom.com'),
),
version: Version(1, 0, 0),
),
},
),
]);

final workspace = await fromContextRootsFromPaths(
['a'],
workingDirectory: workingDir,
);

expect(workspace.computePubspec(), '''
name: custom_lint_client
description: A client for custom_lint
version: 0.0.1
publish_to: 'none'
environment:
sdk: ">=3.0.0 <4.0.0"
dependencies:
custom_lint_builder:
hosted:
name: custom_lint_builder
url: https://custom.com
version: "1.0.0"
''');
});
group(
Expand Down

0 comments on commit 6d2e1a5

Please sign in to comment.