@@ -53,7 +53,7 @@ void main() {
53
53
],
54
54
'topics' : ['widget' , 'button' ],
55
55
'screenshots' : [
56
- {'description' : 'my screenshot' , 'path' : 'path/to/screenshot' }
56
+ {'description' : 'my screenshot' , 'path' : 'path/to/screenshot' },
57
57
],
58
58
});
59
59
expect (value.name, 'sample' );
@@ -91,7 +91,7 @@ void main() {
91
91
'environment' : {
92
92
'sdk' : '>=2.12.0 <3.0.0' ,
93
93
'bob' : null ,
94
- }
94
+ },
95
95
},
96
96
skipTryPub: true ,
97
97
);
@@ -135,7 +135,7 @@ line 3, column 16: Unsupported value for "publish_to". Must be an http or https
135
135
null : null ,
136
136
'http' : 'http://example.com' ,
137
137
'https' : 'https://example.com' ,
138
- 'none' : 'none'
138
+ 'none' : 'none' ,
139
139
}.entries) {
140
140
test ('can be ${entry .key }' , () {
141
141
final value = parse ({
@@ -160,7 +160,7 @@ line 3, column 16: Unsupported value for "publish_to". Must be an http or https
160
160
test ('one author, via authors' , () {
161
161
final value = parse ({
162
162
...defaultPubspec,
163
-
163
+
164
164
});
165
165
expect (value.author,
'[email protected] ' );
166
166
expect (value.authors, [
'[email protected] ' ]);
@@ -169,7 +169,7 @@ line 3, column 16: Unsupported value for "publish_to". Must be an http or https
169
169
test ('many authors' , () {
170
170
final value = parse ({
171
171
...defaultPubspec,
172
-
172
+
173
173
});
174
174
expect (value.author, isNull);
175
175
@@ -179,7 +179,7 @@ line 3, column 16: Unsupported value for "publish_to". Must be an http or https
179
179
final value = parse ({
180
180
...defaultPubspec,
181
181
182
-
182
+
183
183
});
184
184
expect (value.author, isNull);
185
185
@@ -189,7 +189,7 @@ line 3, column 16: Unsupported value for "publish_to". Must be an http or https
189
189
final value = parse ({
190
190
...defaultPubspec,
191
191
192
-
192
+
193
193
});
194
194
expect (value.author,
'[email protected] ' );
195
195
expect (value.authors, [
'[email protected] ' ]);
@@ -269,7 +269,7 @@ line 2, column 10: Unsupported value for "name". "name" cannot be empty.
269
269
expectParseThrows (
270
270
{
271
271
'name' : 'sample' ,
272
- 'environment' : {'dart' : 'cool' }
272
+ 'environment' : {'dart' : 'cool' },
273
273
},
274
274
r'''
275
275
line 4, column 3: Use "sdk" to for Dart SDK constraints.
@@ -284,7 +284,7 @@ line 4, column 3: Use "sdk" to for Dart SDK constraints.
284
284
expectParseThrows (
285
285
{
286
286
'name' : 'sample' ,
287
- 'environment' : {'sdk' : 42 }
287
+ 'environment' : {'sdk' : 42 },
288
288
},
289
289
r'''
290
290
line 4, column 10: Unsupported value for "sdk". `42` is not a String.
@@ -313,7 +313,7 @@ line 3, column 13: Unsupported value for "version". Could not parse "invalid".
313
313
expectParseThrows (
314
314
{
315
315
'name' : 'sample' ,
316
- 'environment' : {'sdk' : 'silly' }
316
+ 'environment' : {'sdk' : 'silly' },
317
317
},
318
318
r'''
319
319
line 4, column 10: Unsupported value for "sdk". Could not parse version "silly". Unknown text at "silly".
@@ -430,7 +430,7 @@ line 6, column 13: Unsupported value for "funding". Illegal scheme character at
430
430
final value = parse ({
431
431
...defaultPubspec,
432
432
'screenshots' : [
433
- {'description' : 'my screenshot' , 'path' : 'path/to/screenshot' }
433
+ {'description' : 'my screenshot' , 'path' : 'path/to/screenshot' },
434
434
],
435
435
});
436
436
expect (value.screenshots, hasLength (1 ));
@@ -445,7 +445,7 @@ line 6, column 13: Unsupported value for "funding". Illegal scheme character at
445
445
{'description' : 'my screenshot' , 'path' : 'path/to/screenshot' },
446
446
{
447
447
'description' : 'my second screenshot' ,
448
- 'path' : 'path/to/screenshot2'
448
+ 'path' : 'path/to/screenshot2' ,
449
449
},
450
450
],
451
451
});
@@ -464,7 +464,7 @@ line 6, column 13: Unsupported value for "funding". Illegal scheme character at
464
464
{
465
465
'description' : 'my screenshot' ,
466
466
'path' : 'path/to/screenshot' ,
467
- 'extraKey' : 'not important'
467
+ 'extraKey' : 'not important' ,
468
468
},
469
469
'not a screenshot' ,
470
470
],
@@ -659,7 +659,7 @@ line 1, column 1: Not a map
659
659
'name' : 'sample' ,
660
660
'dependencies' : {
661
661
'foo' : {
662
- 'git' : {'url' : 1 }
662
+ 'git' : {'url' : 1 },
663
663
},
664
664
},
665
665
'issue_tracker' : {'x' : 'y' },
0 commit comments