File tree Expand file tree Collapse file tree 2 files changed +0
-21
lines changed
Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -18,19 +18,12 @@ import 'package:test/test.dart';
1818///
1919/// ```
2020Matcher isRoute <T extends Object ?>({
21- @Deprecated ('Use `whereName` instead' ) String ? named,
2221 Matcher ? whereSettings,
2322 Matcher ? whereName,
2423 Matcher ? whereArguments,
2524 Matcher ? whereMaintainState,
2625 Matcher ? whereFullscreenDialog,
2726}) {
28- // Remove once `named` argument is removed.
29- if (whereName == null && named != null ) {
30- // ignore: parameter_assignments
31- whereName = equals (named);
32- }
33-
3427 assert (
3528 whereSettings == null || (whereName == null && whereArguments == null ),
3629 'Cannot specify both `whereSettings` and `whereName` or `whereArguments`' ,
Original file line number Diff line number Diff line change 11import 'package:flutter/material.dart' ;
22import 'package:flutter_test/flutter_test.dart' ;
3- import 'package:matcher/src/feature_matcher.dart' ;
43import 'package:mockingjay/mockingjay.dart' ;
54
65class NonModalRoute extends Mock implements TransitionRoute <void > {}
@@ -49,19 +48,6 @@ void main() {
4948 }
5049
5150 group ('constructor' , () {
52- test ('wraps deprecated name value in equals matcher' , () {
53- expect (
54- // ignore: deprecated_member_use_from_same_package
55- isRoute (named: '/test' ),
56- isA <dynamic >().having (
57- // ignore: avoid_dynamic_calls
58- (dynamic m) => m.whereName,
59- 'whereName' ,
60- isA <FeatureMatcher <String >>(),
61- ),
62- );
63- });
64-
6551 test (
6652 'throws AssertionError when both whereSettings '
6753 'and whereName or whereArguments matchers are provided' ,
You can’t perform that action at this time.
0 commit comments