Skip to content

Commit 170758c

Browse files
committed
Fix encoding of argument in test
1 parent 8bb3a51 commit 170758c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/add/common/add_test.dart

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
import 'dart:io' show File;
65
import 'dart:convert';
6+
import 'dart:io' show File;
77

88
import 'package:path/path.dart' as p;
99
import 'package:pub/src/exit_codes.dart' as exit_codes;
@@ -1192,9 +1192,11 @@ dependency_overrides:
11921192

11931193
// Explicitly add using a forward slash in absolute path.
11941194
// This should be preserved in the pubspec.yaml, even on windows.
1195-
await pubAdd(args: ['foo:${json.encode(
1196-
{'path': '$sandbox/foo'}
1197-
)}']);
1195+
await pubAdd(
1196+
args: [
1197+
'foo:${json.encode({'path': '$sandbox/foo'})}',
1198+
],
1199+
);
11981200

11991201
await d
12001202
.appDir(

0 commit comments

Comments
 (0)