File tree Expand file tree Collapse file tree 1 file changed +0
-40
lines changed
packages/custom_lint/test/src Expand file tree Collapse file tree 1 file changed +0
-40
lines changed Original file line number Diff line number Diff line change @@ -2223,46 +2223,6 @@ publish_to: 'none'
22232223
22242224dependencies:
22252225 plugin1: ">=1.5.0 <2.0.0"
2226- ''' );
2227- });
2228- test (
2229- 'If a dependency comes from a custom hosted source, the generated pubspec.yaml should contain the hosted source' ,
2230- () async {
2231- final workingDir = await createSimpleWorkspace ([
2232- Pubspec (
2233- 'a' ,
2234- dependencies: {
2235- 'custom_lint_builder' : HostedDependency (
2236- hosted: HostedDetails (
2237- 'custom_lint_builder' ,
2238- Uri .parse ('https://custom.com' ),
2239- ),
2240- version: Version (1 , 0 , 0 ),
2241- ),
2242- },
2243- ),
2244- ]);
2245-
2246- final workspace = await fromContextRootsFromPaths (
2247- ['a' ],
2248- workingDirectory: workingDir,
2249- );
2250-
2251- expect (workspace.computePubspec (), '''
2252- name: custom_lint_client
2253- description: A client for custom_lint
2254- version: 0.0.1
2255- publish_to: 'none'
2256-
2257- environment:
2258- sdk: ">=3.0.0 <4.0.0"
2259-
2260- dependencies:
2261- custom_lint_builder:
2262- hosted:
2263- name: custom_lint_builder
2264- url: https://custom.com
2265- version: "1.0.0"
22662226''' );
22672227 });
22682228 group (
You can’t perform that action at this time.
0 commit comments