Skip to content

Commit 6d2e1a5

Browse files
chedwin41MobiliteDev
authored andcommitted
fix: doubled test
1 parent 56e0d52 commit 6d2e1a5

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

packages/custom_lint/test/src/workspace_test.dart

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2222,46 +2222,6 @@ publish_to: 'none'
22222222
22232223
dependencies:
22242224
plugin1: ">=1.5.0 <2.0.0"
2225-
''');
2226-
});
2227-
test(
2228-
'If a dependency comes from a custom hosted source, the generated pubspec.yaml should contain the hosted source',
2229-
() async {
2230-
final workingDir = await createSimpleWorkspace([
2231-
Pubspec(
2232-
'a',
2233-
dependencies: {
2234-
'custom_lint_builder': HostedDependency(
2235-
hosted: HostedDetails(
2236-
'custom_lint_builder',
2237-
Uri.parse('https://custom.com'),
2238-
),
2239-
version: Version(1, 0, 0),
2240-
),
2241-
},
2242-
),
2243-
]);
2244-
2245-
final workspace = await fromContextRootsFromPaths(
2246-
['a'],
2247-
workingDirectory: workingDir,
2248-
);
2249-
2250-
expect(workspace.computePubspec(), '''
2251-
name: custom_lint_client
2252-
description: A client for custom_lint
2253-
version: 0.0.1
2254-
publish_to: 'none'
2255-
2256-
environment:
2257-
sdk: ">=3.0.0 <4.0.0"
2258-
2259-
dependencies:
2260-
custom_lint_builder:
2261-
hosted:
2262-
name: custom_lint_builder
2263-
url: https://custom.com
2264-
version: "1.0.0"
22652225
''');
22662226
});
22672227
group(

0 commit comments

Comments
 (0)