File tree 1 file changed +7
-7
lines changed
android/src/test/java/com/instabug/reactlibrary
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -638,20 +638,20 @@ public void testWillRedirectToStore() {
638
638
639
639
@ Test
640
640
public void testEnableAutoMasking () {
641
-
641
+ // when
642
642
rnModule .setAutoMaskingEnabled (true );
643
643
644
- verify ( Instabug . class , times ( 1 ));
645
- Instabug .setNetworkAutoMaskingState (Feature .State .ENABLED );
644
+ // then
645
+ mockInstabug . verify (() -> Instabug .setNetworkAutoMaskingState (Feature .State .ENABLED ) );
646
646
}
647
-
647
+
648
648
@ Test
649
649
public void testDisableAutoMasking () {
650
-
650
+ // when
651
651
rnModule .setAutoMaskingEnabled (false );
652
652
653
- verify ( Instabug . class , times ( 1 ));
654
- Instabug .setNetworkAutoMaskingState (Feature .State .DISABLED );
653
+ // then
654
+ mockInstabug . verify (() -> Instabug .setNetworkAutoMaskingState (Feature .State .DISABLED ) );
655
655
}
656
656
657
657
}
You can’t perform that action at this time.
0 commit comments