@@ -267,7 +267,7 @@ void main() {
267
267
});
268
268
test ("should mock method with named, typed arg matcher" , () {
269
269
when (mock.methodWithSpecialNamedArgs (
270
- typed/*<List<int>>*/ (any), [43 ], y: typed/*<List<int>>*/ (any, name : "y" )))
270
+ typed/*<List<int>>*/ (any), [43 ], y: typed/*<List<int>>*/ (any, named : "y" )))
271
271
.thenReturn ("A lot!" );
272
272
expect (mock.methodWithSpecialNamedArgs ([42 ], [43 ], y: [44 ]), equals ("A lot!" ));
273
273
});
@@ -276,7 +276,7 @@ void main() {
276
276
mock.methodWithSpecialNamedArgs (
277
277
typed/*<List<int>>*/ (any),
278
278
[43 ],
279
- y: typed/*<List<int>>*/ (any, name : "y" ),
279
+ y: typed/*<List<int>>*/ (any, named : "y" ),
280
280
z: argThat (contains (45 ))))
281
281
.thenReturn ("A lot!" );
282
282
expect (mock.methodWithSpecialNamedArgs ([42 ], [43 ], y: [44 ], z: [45 ]),
@@ -287,25 +287,25 @@ void main() {
287
287
mock.methodWithSpecialNamedArgs (
288
288
typed/*<List<int>>*/ (any),
289
289
[43 ],
290
- y: typed/*<List<int>>*/ (any, name : "y" ),
290
+ y: typed/*<List<int>>*/ (any, named : "y" ),
291
291
z: [45 ]))
292
292
.thenReturn ("A lot!" );
293
293
expect (mock.methodWithSpecialNamedArgs ([42 ], [43 ], y: [44 ], z: [45 ]),
294
294
equals ("A lot!" ));
295
295
});
296
- test ("should throw when [typed] used as a named arg, without `name :`" , () {
296
+ test ("should throw when [typed] used as a named arg, without `named :`" , () {
297
297
expect (() => when (mock.methodWithSpecialNamedArgs (
298
298
typed/*<List<int>>*/ (any), [43 ], y: typed/*<List<int>>*/ (any))),
299
299
throwsArgumentError);
300
300
});
301
- test ("should throw when [typed] used as a positional arg, with `name :`" , () {
301
+ test ("should throw when [typed] used as a positional arg, with `named :`" , () {
302
302
expect (() => when (mock.methodWithSpecialNamedArgs (
303
- typed/*<List<int>>*/ (any), typed/*<List<int>>*/ (any, name : "y" ))),
303
+ typed/*<List<int>>*/ (any), typed/*<List<int>>*/ (any, named : "y" ))),
304
304
throwsArgumentError);
305
305
});
306
- test ("should throw when [typed] used as a named arg, with the wrong `name :`" , () {
306
+ test ("should throw when [typed] used as a named arg, with the wrong `named :`" , () {
307
307
expect (() => when (mock.methodWithSpecialNamedArgs (
308
- typed/*<List<int>>*/ (any), [43 ], y: typed/*<List<int>>*/ (any, name : "z" ))),
308
+ typed/*<List<int>>*/ (any), [43 ], y: typed/*<List<int>>*/ (any, named : "z" ))),
309
309
throwsArgumentError);
310
310
});
311
311
});
0 commit comments