Skip to content

Commit

Permalink
fix: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kholood-ea committed Nov 13, 2024
1 parent 5661424 commit 6f590cd
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -638,20 +638,20 @@ public void testWillRedirectToStore() {

@Test
public void testEnableAutoMasking() {

// when
rnModule.setAutoMaskingEnabled(true);

verify(Instabug.class, times(1));
Instabug.setNetworkAutoMaskingState(Feature.State.ENABLED);
// then
mockInstabug.verify(() -> Instabug.setNetworkAutoMaskingState(Feature.State.ENABLED));
}

@Test
public void testDisableAutoMasking() {

// when
rnModule.setAutoMaskingEnabled(false);

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

}

0 comments on commit 6f590cd

Please sign in to comment.