Browse Source

Fix unit tests

Guy Carmeli 4 years ago
parent
commit
68e4c4b42f

+ 1
- 1
lib/android/app/src/test/java/com/reactnativenavigation/viewcontrollers/modal/ModalStackTest.java View File

@@ -175,7 +175,7 @@ public class ModalStackTest extends BaseTest {
175 175
 
176 176
     @Test
177 177
     public void dismissAllModal_resolvesPromiseSuccessfullyWhenCalledBeforeRootIsSet() {
178
-        CommandListenerAdapter spy = new CommandListenerAdapter();
178
+        CommandListenerAdapter spy = spy(new CommandListenerAdapter());
179 179
         uut.dismissAllModals(null, Options.EMPTY, spy);
180 180
         verify(spy).onSuccess("");
181 181
     }