Skip to content

Commit bc123a9

Browse files
committed
fix: test failure
1 parent d1086e1 commit bc123a9

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,6 @@ public void givenTruesetEnabled_whenQuery_thenShouldCallNativeApiWithEnabled() {
114114
APM.endAppLaunch();
115115
}
116116

117-
@Test
118-
public void givenString$startExecutionTrace_whenQuery_thenShouldCallNativeApi() {
119-
Promise promise = mock(Promise.class);
120-
// when
121-
apmModule.startExecutionTrace("trace", "1", promise);
122-
// then
123-
verify(APM.class, times(1));
124-
APM.startExecutionTrace("trace");
125-
verify(promise).resolve(any());
126-
}
127-
128117
@Test
129118
public void testStartFlow() {
130119
String appFlowName = "appFlowName";

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -523,24 +523,6 @@ public void testIdentifyUserWithId() {
523523

524524
}
525525

526-
527-
@Test
528-
public void givenArg$removeExperiments_whenQuery_thenShouldCallNativeApiWithArg() {
529-
// given
530-
JavaOnlyArray array = new JavaOnlyArray();
531-
array.pushString("exp1");
532-
array.pushString("exp2");
533-
534-
// when
535-
rnModule.removeExperiments(array);
536-
537-
// then
538-
verify(Instabug.class,times(1));
539-
List<String> expectedList = new ArrayList<String>();
540-
expectedList.add("exp1");
541-
expectedList.add("exp2");
542-
Instabug.removeExperiments(expectedList);
543-
}
544526

545527
@Test
546528
public void testAddFeatureFlags() {

0 commit comments

Comments
 (0)