Skip to content

Commit 6f590cd

Browse files
committed
fix: update tests
1 parent 5661424 commit 6f590cd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

android/src/test/java/com/instabug/reactlibrary/RNInstabugReactnativeModuleTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -638,20 +638,20 @@ public void testWillRedirectToStore() {
638638

639639
@Test
640640
public void testEnableAutoMasking() {
641-
641+
// when
642642
rnModule.setAutoMaskingEnabled(true);
643643

644-
verify(Instabug.class, times(1));
645-
Instabug.setNetworkAutoMaskingState(Feature.State.ENABLED);
644+
// then
645+
mockInstabug.verify(() -> Instabug.setNetworkAutoMaskingState(Feature.State.ENABLED));
646646
}
647-
647+
648648
@Test
649649
public void testDisableAutoMasking() {
650-
650+
// when
651651
rnModule.setAutoMaskingEnabled(false);
652652

653-
verify(Instabug.class, times(1));
654-
Instabug.setNetworkAutoMaskingState(Feature.State.DISABLED);
653+
// then
654+
mockInstabug.verify(() -> Instabug.setNetworkAutoMaskingState(Feature.State.DISABLED));
655655
}
656656

657657
}

0 commit comments

Comments
 (0)