File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ void main() {
25
25
return null ;
26
26
case 'logOut' :
27
27
return null ;
28
+ case 'setLocale:' :
29
+ return null ;
28
30
default :
29
31
return null ;
30
32
}
@@ -34,7 +36,6 @@ void main() {
34
36
tearDown (() async {
35
37
log.clear ();
36
38
});
37
-
38
39
test ('startWithToken:invocationEvents: Test' , () async {
39
40
InstabugFlutter .start (appToken, invocationEvents);
40
41
expect (log, < Matcher > [
@@ -91,4 +92,15 @@ test('startWithToken:invocationEvents: Test', () async {
91
92
)
92
93
]);
93
94
});
95
+
96
+ test ('setLocale:' , () async {
97
+ InstabugFlutter .setLocale (Locale .German );
98
+ expect (log, < Matcher > [
99
+ isMethodCall ('setLocale:' ,
100
+ arguments: < String , dynamic > {
101
+ 'locale' : Locale .German .toString ()
102
+ },
103
+ )
104
+ ]);
105
+ });
94
106
}
You can’t perform that action at this time.
0 commit comments