Home
last modified time | relevance | path

Searched refs:verify (Results 1 – 25 of 130) sorted by relevance

123456

/expo/packages/expo-av/android/src/test/java/expo/modules/av/progress/
H A DProgressLooperTest.kt8 import io.mockk.verify
65 verify(exactly = 0) { callback() } in callback not invoked prematurely()
73 verify(exactly = 1) { callback() } in callback invoked once after time passed()
83 verify(exactly = 2) { callback() } in callback invoked twice after two timeouts()
91 verify(exactly = 1) { callback() } in callback invoked once after twice too big timeout()
99 verify(exactly = 1) { callback() } in callback not invoked after looping stopped()
103 verify(exactly = 1) { callback() } in callback not invoked after looping stopped()
113 verify(exactly = 0) { callback() } in callback not invoked earlier if interval shortened()
117 verify(exactly = 1) { callback() } in callback not invoked earlier if interval shortened()
121 verify(exactly = 2) { callback() } in callback not invoked earlier if interval shortened()
[all …]
/expo/packages/expo-updates/android/src/androidTest/java/expo/modules/updates/loader/
H A DEmbeddedLoaderTest.kt18 import io.mockk.verify
73 verify { mockCallback.onSuccess(any()) } in testEmbeddedLoader_SimpleCase()
74 verify(exactly = 0) { mockCallback.onFailure(any()) } in testEmbeddedLoader_SimpleCase()
93 verify { mockCallback.onFailure(any()) } in testEmbeddedLoader_FailureToCopyAssets()
117 verify { mockCallback.onSuccess(any()) } in testEmbeddedLoader_MultipleScales()
141 verify { mockCallback.onSuccess(any()) } in testEmbeddedLoader_MultipleScales_ReverseOrder()
167 verify { mockCallback.onSuccess(any()) } in testEmbeddedLoader_AssetExists_BothDbAndDisk()
193 verify { mockCallback.onSuccess(any()) } in testEmbeddedLoader_AssetExists_DbOnly()
221 verify { mockCallback.onSuccess(any()) } in testEmbeddedLoader_AssetExists_DiskOnly()
251 verify { mockCallback.onSuccess(any()) } in testEmbeddedLoader_UpdateExists_Ready()
[all …]
H A DRemoteLoaderTest.kt19 import io.mockk.verify
91 verify { mockCallback.onSuccess(any()) } in testRemoteLoader_SimpleCase()
92 verify(exactly = 0) { mockCallback.onFailure(any()) } in testRemoteLoader_SimpleCase()
112 verify(exactly = 0) { mockCallback.onSuccess(any()) } in testRemoteLoader_FailureToDownloadAssets()
113 verify { mockCallback.onFailure(any()) } in testRemoteLoader_FailureToDownloadAssets()
135 verify { mockCallback.onSuccess(any()) } in testRemoteLoader_AssetExists_BothDbAndDisk()
162 verify { mockCallback.onSuccess(any()) } in testRemoteLoader_AssetExists_DbOnly()
194 verify { mockCallback.onSuccess(any()) } in testRemoteLoader_UpdateExists_Ready()
216 verify { mockCallback.onSuccess(any()) } in testRemoteLoader_UpdateExists_Pending()
242 verify { mockCallback.onSuccess(any()) } in testRemoteLoader_UpdateExists_DifferentScopeKey()
[all …]
/expo/packages/expo-updates/ios/Tests/
H A DErrorRecoverySpec.swift39 verify(method, times: 0) in never()
101 mockDelegate.verify(.relaunch) in spec()
126 mockDelegate.verify(.throwException) in spec()
144 mockDelegate.verify(.relaunch) in spec()
168 mockDelegate.verify(.relaunch) in spec()
218 mockDelegate.verify(.relaunch) in spec()
265 mockDelegate.verify(.relaunch) in spec()
295 mockDelegate.verify(.relaunch) in spec()
390 mockDelegate.verify(.relaunch) in spec()
436 mockDelegate.verify(.relaunch) in spec()
[all …]
/expo/packages/expo-updates/android/src/androidTest/java/expo/modules/updates/db/
H A DBuildDataTest.kt10 import io.mockk.verify
92 verify(exactly = 0) { spyBuildData.clearAllUpdatesFromDatabase(any()) } in ensureBuildDataIsConsistent_buildDataIsNull()
93 verify(exactly = 1) { spyBuildData.setBuildDataInDatabase(any(), any()) } in ensureBuildDataIsConsistent_buildDataIsNull()
104 verify(exactly = 0) { spyBuildData.clearAllUpdatesFromDatabase(any()) } in ensureBuildDataIsConsistent_buildDataIsInconsistent_channel()
114 verify(exactly = 1) { spyBuildData.clearAllUpdatesFromDatabase(any()) } in ensureBuildDataIsConsistent_buildDataIsInconsistent_channel()
128 verify(exactly = 0) { spyBuildData.clearAllUpdatesFromDatabase(any()) } in ensureBuildDataIsConsistent_buildDataIsInconsistent_releaseChannel()
138 verify(exactly = 1) { spyBuildData.clearAllUpdatesFromDatabase(any()) } in ensureBuildDataIsConsistent_buildDataIsInconsistent_releaseChannel()
153 verify(exactly = 0) { spyBuildData.clearAllUpdatesFromDatabase(any()) } in ensureBuildDataIsConsistent_buildDataIsConsistent_channel()
163 verify(exactly = 0) { spyBuildData.clearAllUpdatesFromDatabase(any()) } in ensureBuildDataIsConsistent_buildDataIsConsistent_channel()
178 verify(exactly = 0) { spyBuildData.clearAllUpdatesFromDatabase(any()) } in ensureBuildDataIsConsistent_buildDataIsConsistent_releaseChannel()
[all …]
/expo/packages/expo-notifications/android/src/test/java/expo/modules/notifications/service/delegates/
H A DExpoHandlingDelegateTest.kt15 import io.mockk.verify
44 verify { notificationManager.onNotificationReceived(expectedNotification) } in handleNotification when in foreground invokes listener and does not present()
45 verify(inverse = true) { NotificationsService.present(any(), any(), any(), any()) } in handleNotification when in foreground invokes listener and does not present()
55 verify(inverse = true) { notificationManager.onNotificationReceived(any()) } in handleNotification when in background does not invoke listener and presents notification()
56 verify { NotificationsService.present(any(), expectedNotification, any(), any()) } in handleNotification when in background does not invoke listener and presents notification()
66 verify(inverse = true) { notificationManager.onNotificationReceived(any()) } in handleNotification when in background with title only presents notification()
67 verify { NotificationsService.present(any(), expectedNotification, any(), any()) } in handleNotification when in background with title only presents notification()
77 verify(inverse = true) { notificationManager.onNotificationReceived(any()) } in handleNotification when in background with text only presents notification()
78 verify { NotificationsService.present(any(), expectedNotification, any(), any()) } in handleNotification when in background with text only presents notification()
89 verify(inverse = true) { notificationManager.onNotificationReceived(any()) } in handleNotification when in background and data only does not present notification()
[all …]
/expo/packages/expo-dev-launcher/android/src/test/java/expo/modules/devlauncher/launcher/configurators/
H A DDevLauncherExpoActivityConfiguratorTest.kt22 import io.mockk.verify
43 verify { mockActivity.setTaskDescription(capture(slot)) } in sets task description from manifest()
75 verify { mockActivity.requestedOrientation = expectedOrientation } in verifyOrientation()
114 verify { mockDecorView.systemUiVisibility = if (expectedLightStyle) 0 else 8192 } in verifyStatusBar()
118 verify { mockWindow.statusBarColor = expectedColor } in verifyStatusBar()
124 verify { mockWindow.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN) } in verifyStatusBar()
125 verify { mockWindow.clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN) } in verifyStatusBar()
127 verify { mockWindow.addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN) } in verifyStatusBar()
128 verify { mockWindow.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN) } in verifyStatusBar()
170 verify { mockWindow.navigationBarColor = expectedColor } in verifyNavigationBar()
[all …]
/expo/packages/expo-updates/android/src/androidTest/java/expo/modules/updates/errorrecovery/
H A DErrorRecoveryTest.kt69 verify { mockDelegate.throwException(any()) } in testHandleException_NewWorkingUpdateAlreadyLoaded_ContentAppeared()
92 verify { mockDelegate.markFailedLaunchForLaunchedUpdate() } in testHandleException_NewWorkingUpdateLoading()
96 verify { mockDelegate.relaunch(any()) } in testHandleException_NewWorkingUpdateLoading()
112 verify { mockDelegate.throwException(any()) } in testHandleException_NewWorkingUpdateLoading_ContentAppeared()
197 verify { mockDelegate.throwException(any()) } in testHandleException_RemoteLoadTimesOut_ContentAppeared()
215 verify { mockDelegate.relaunch(any()) } in testHandleException_NoRemoteUpdate()
228 verify { mockDelegate.loadRemoteUpdate() } in testHandleException_NoRemoteUpdate_ContentAppeared()
233 verify { mockDelegate.throwException(any()) } in testHandleException_NoRemoteUpdate_ContentAppeared()
259 verify { mockDelegate.throwException(any()) } in testHandleException_CheckAutomaticallyNever_ContentAppeared()
269 verify(exactly = 1) { mockDelegate.loadRemoteUpdate() } in testHandleException_Twice()
[all …]
/expo/packages/expo-modules-core/android/src/test/java/expo/modules/kotlin/
H A DKPromiseWrapperTest.kt6 import io.mockk.verify
19 verify { bridgePromiseMock.resolve(null) } in should convert Unit to null()
/expo/packages/expo-web-browser/android/src/test/java/expo/modules/webbrowser/
H A DWebBrowserModuleTest.kt13 import io.mockk.verify
259 verify(exactly = 1) { in openBrowserAsync()
262 verify { in openBrowserAsync()
278 verify(exactly = 1) { in openBrowserAsync()
281 verify { in openBrowserAsync()
296 verify(exactly = 1) { in openBrowserAsync()
299 verify { in openBrowserAsync()
315 verify(exactly = 1) { in openBrowserAsync()
318 verify { in openBrowserAsync()
/expo/packages/expo/android/src/test/java/expo/modules/
H A DReactActivityDelegateWrapperTest.kt17 import io.mockk.verify
80 verify(exactly = 1) { mockPackage0.reactActivityLifecycleListener.onNewIntent(any()) } in onBackPressed should call each handler's callback just once()
81 verify(exactly = 1) { mockPackage1.reactActivityLifecycleListener.onNewIntent(any()) } in onBackPressed should call each handler's callback just once()
82 verify(exactly = 1) { delegate.onNewIntent(any()) } in onBackPressed should call each handler's callback just once()
/expo/ios/versioned-react-native/ABI48_0_0/ReactNative/Libraries/Components/DatePicker/__tests__/__snapshots__/
H A DDatePickerIOS-test.js.snap3 … mode is passed inside the props: should deep render when mocked (please verify output manually) 1…
20 …e is passed inside the props: should deep render when not mocked (please verify output manually) 1…
51 exports[`DatePickerIOS should render as expected: should deep render when mocked (please verify out…
68 exports[`DatePickerIOS should render as expected: should deep render when not mocked (please verify…
/expo/ios/versioned-react-native/ABI47_0_0/ReactNative/Libraries/Components/DatePicker/__tests__/__snapshots__/
H A DDatePickerIOS-test.js.snap3 … mode is passed inside the props: should deep render when mocked (please verify output manually) 1…
20 …e is passed inside the props: should deep render when not mocked (please verify output manually) 1…
51 exports[`DatePickerIOS should render as expected: should deep render when mocked (please verify out…
68 exports[`DatePickerIOS should render as expected: should deep render when not mocked (please verify…
/expo/ios/versioned-react-native/ABI48_0_0/ReactNative/Libraries/Components/ProgressViewIOS/__tests__/__snapshots__/
H A DProgressViewIOS-test.js.snap3 …IOS /> should render as expected: should deep render when mocked (please verify output manually) 1…
17 …/> should render as expected: should deep render when not mocked (please verify output manually) 1…
/expo/ios/versioned-react-native/ABI47_0_0/ReactNative/Libraries/Components/ProgressViewIOS/__tests__/__snapshots__/
H A DProgressViewIOS-test.js.snap3 …IOS /> should render as expected: should deep render when mocked (please verify output manually) 1…
17 …/> should render as expected: should deep render when not mocked (please verify output manually) 1…
/expo/ios/versioned-react-native/ABI47_0_0/ReactNative/Libraries/Components/ProgressBarAndroid/__tests__/__snapshots__/
H A DProgressBarAndroid-test.js.snap3 …oid /> should render as expected: should deep render when mocked (please verify output manually) 1…
11 …/> should render as expected: should deep render when not mocked (please verify output manually) 1…
/expo/ios/versioned-react-native/ABI48_0_0/ReactNative/Libraries/Components/ProgressBarAndroid/__tests__/__snapshots__/
H A DProgressBarAndroid-test.js.snap3 …oid /> should render as expected: should deep render when mocked (please verify output manually) 1…
11 …/> should render as expected: should deep render when not mocked (please verify output manually) 1…
/expo/ios/versioned-react-native/ABI49_0_0/ReactNative/Libraries/Components/ProgressBarAndroid/__tests__/__snapshots__/
H A DProgressBarAndroid-test.js.snap3 …oid /> should render as expected: should deep render when mocked (please verify output manually) 1…
11 …/> should render as expected: should deep render when not mocked (please verify output manually) 1…
/expo/ios/versioned-react-native/ABI47_0_0/ReactNative/Libraries/Components/Pressable/__tests__/__snapshots__/
H A DPressable-test.js.snap3 exports[`<Pressable /> should render as expected: should deep render when mocked (please verify out…
22 exports[`<Pressable /> should render as expected: should deep render when not mocked (please verify…
53 …e disabled when disabled is true: should deep render when mocked (please verify output manually) 1…
77 …sabled when disabled is true: should deep render when not mocked (please verify output manually) 1…
117 … and accessibilityState is empty: should deep render when mocked (please verify output manually) 1…
141 … accessibilityState is empty: should deep render when not mocked (please verify output manually) 1…
183 …ilityState when disabled is true: should deep render when mocked (please verify output manually) 1…
208 …yState when disabled is true: should deep render when not mocked (please verify output manually) 1…
259 …tate with value of disabled prop: should deep render when mocked (please verify output manually) 1…
283 … with value of disabled prop: should deep render when not mocked (please verify output manually) 1…
/expo/ios/versioned-react-native/ABI47_0_0/ReactNative/Libraries/Components/ActivityIndicator/__tests__/__snapshots__/
H A DActivityIndicator-test.js.snap3 …tor /> should render as expected: should deep render when mocked (please verify output manually) 1…
10 …/> should render as expected: should deep render when not mocked (please verify output manually) 1…
/expo/ios/versioned-react-native/ABI47_0_0/ReactNative/Libraries/Components/SafeAreaView/__tests__/__snapshots__/
H A DSafeAreaView-test.js.snap3 exports[`<SafeAreaView /> should render as expected: should deep render when mocked (please verify …
13 …/> should render as expected: should deep render when not mocked (please verify output manually) 1…
/expo/ios/versioned-react-native/ABI48_0_0/ReactNative/Libraries/Components/SafeAreaView/__tests__/__snapshots__/
H A DSafeAreaView-test.js.snap3 exports[`<SafeAreaView /> should render as expected: should deep render when mocked (please verify …
13 …/> should render as expected: should deep render when not mocked (please verify output manually) 1…
/expo/packages/expo-dev-launcher/android/src/testDebug/java/expo/modules/devlauncher/
H A DDevLauncherControllerTest.kt11 import io.mockk.verify
46 verify { in sets shouldAutoLaunch on dev menu manager()
/expo/ios/versioned-react-native/ABI49_0_0/ReactNative/Libraries/Components/ActivityIndicator/__tests__/__snapshots__/
H A DActivityIndicator-test.js.snap3 …tor /> should render as expected: should deep render when mocked (please verify output manually) 1…
10 …/> should render as expected: should deep render when not mocked (please verify output manually) 1…
/expo/ios/versioned-react-native/ABI49_0_0/ReactNative/Libraries/Components/SafeAreaView/__tests__/__snapshots__/
H A DSafeAreaView-test.js.snap3 exports[`<SafeAreaView /> should render as expected: should deep render when mocked (please verify …
13 …/> should render as expected: should deep render when not mocked (please verify output manually) 1…

123456