File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
packages/firebase_dynamic_links/test Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ void main() {
39
39
'minimumVersion' : 'Version 12' ,
40
40
},
41
41
};
42
+ case 'FirebaseDynamicLinks#getDynamicLink' :
43
+ return 'https://google.com' ;
42
44
default :
43
45
return null ;
44
46
}
@@ -65,6 +67,21 @@ void main() {
65
67
]);
66
68
});
67
69
70
+ test ('getDynamicLink' , () async {
71
+ final Uri argument = Uri .parse ('short-link' );
72
+ final Uri url =
73
+ await FirebaseDynamicLinks .instance.getDynamicLink (argument);
74
+
75
+ expect (url.host, 'google.com' );
76
+
77
+ expect (log, < Matcher > [
78
+ isMethodCall ('FirebaseDynamicLinks#getDynamicLink' ,
79
+ arguments: < String , dynamic > {
80
+ 'url' : argument.toString (),
81
+ })
82
+ ]);
83
+ });
84
+
68
85
group ('$DynamicLinkParameters ' , () {
69
86
test ('shortenUrl' , () async {
70
87
final Uri url = Uri .parse ('google.com' );
You can’t perform that action at this time.
0 commit comments