From ddab980295c61c669bc5003e624cd0a20cf4aa1b Mon Sep 17 00:00:00 2001 From: Alex Li Date: Fri, 13 Dec 2024 21:55:35 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Update=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/add/common/add_test.dart | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/test/add/common/add_test.dart b/test/add/common/add_test.dart index 645877bba..d6846ca89 100644 --- a/test/add/common/add_test.dart +++ b/test/add/common/add_test.dart @@ -33,18 +33,26 @@ void main() { }); test('adds a package with a multi-component name from path', () async { - await d.dir('foo', [d.libPubspec('fo_o1.a', '1.0.0')]).create(); + await d.dir('fo_o1', [d.libPubspec('fo_o1.a', '1.0.0')]).create(); + await d.dir('fo_o2', [d.libPubspec('fo_o2.a', '1.0.0')]).create(); + await d.dir('fo_o3', [d.libPubspec('fo_o3.a', '1.0.0')]).create(); await d.appDir(dependencies: {}).create(); - await pubAdd(args: ['fo_o1.a:{"path":"../foo"}']); + await pubAdd(args: ['fo_o1.a:{"path":"../fo_o1"}']); + await pubAdd(args: ['\'fo_o2.a:{"path":"../fo_o2"}\'']); + await pubAdd(args: ["\"fo_o3.a:{'path':'../fo_o3'}\""]); await d.appPackageConfigFile([ - d.packageConfigEntry(name: 'fo_o1.a', path: '../foo'), + d.packageConfigEntry(name: 'fo_o1.a', path: '../fo_o1'), + d.packageConfigEntry(name: 'fo_o2.a', path: '../fo_o2'), + d.packageConfigEntry(name: 'fo_o3.a', path: '../fo_o3'), ]).validate(); await d.appDir( dependencies: { - 'fo_o1.a': {'path': '../foo'}, + 'fo_o1.a': {'path': '../fo_o1'}, + 'fo_o2.a': {'path': '../fo_o2'}, + 'fo_o3.a': {'path': '../fo_o3'}, }, ).validate(); });