Home
last modified time | relevance | path

Searched refs:mockDelegate (Results 1 – 5 of 5) sorted by relevance

/expo/packages/expo-updates/android/src/androidTest/java/expo/modules/updates/errorrecovery/
H A DErrorRecoveryTest.kt57 mockDelegate.relaunch(any()) in testHandleException_NewWorkingUpdateAlreadyLoaded()
70 confirmVerified(mockDelegate) in testHandleException_NewWorkingUpdateAlreadyLoaded_ContentAppeared()
81 mockDelegate.relaunch(any()) in testHandleException_NewUpdateLoaded_RelaunchFails()
93 confirmVerified(mockDelegate) in testHandleException_NewWorkingUpdateLoading()
97 confirmVerified(mockDelegate) in testHandleException_NewWorkingUpdateLoading()
109 confirmVerified(mockDelegate) in testHandleException_NewWorkingUpdateLoading_ContentAppeared()
113 confirmVerified(mockDelegate) in testHandleException_NewWorkingUpdateLoading_ContentAppeared()
124 mockDelegate.relaunch(any()) in testHandleException_NewBrokenUpdateLoaded_WorkingUpdateCached()
198 confirmVerified(mockDelegate) in testHandleException_RemoteLoadTimesOut_ContentAppeared()
216 confirmVerified(mockDelegate) in testHandleException_NoRemoteUpdate()
[all …]
/expo/packages/expo-updates/ios/Tests/
H A DErrorRecoverySpec.swift101 mockDelegate.verify(.relaunch) in spec()
124 mockDelegate.never(.relaunch) in spec()
144 mockDelegate.verify(.relaunch) in spec()
168 mockDelegate.verify(.relaunch) in spec()
200 mockDelegate.never(.relaunch) in spec()
218 mockDelegate.verify(.relaunch) in spec()
265 mockDelegate.verify(.relaunch) in spec()
295 mockDelegate.verify(.relaunch) in spec()
339 mockDelegate.never(.relaunch) in spec()
366 mockDelegate.never(.relaunch) in spec()
[all …]
/expo/packages/expo-modules-core/android/src/test/java/expo/modules/kotlin/devtools/
H A DExpoRequestCdpInterceptorTest.kt41 var json = JSONObject(mockDelegate.events[0]) in simple json data()
50 json = JSONObject(mockDelegate.events[1]) in simple json data()
57 json = JSONObject(mockDelegate.events[2]) in simple json data()
68 json = JSONObject(mockDelegate.events[3]) in simple json data()
77 json = JSONObject(mockDelegate.events[4]) in simple json data()
102 json = JSONObject(mockDelegate.events[2]) in http 302 redirection()
117 json = JSONObject(mockDelegate.events[4]) in http 302 redirection()
128 json = JSONObject(mockDelegate.events[5]) in http 302 redirection()
166 json = JSONObject(mockDelegate.events[1]) in skip 'receivedResponseBody' when response size exceeding 1MB limit()
169 json = JSONObject(mockDelegate.events[2]) in skip 'receivedResponseBody' when response size exceeding 1MB limit()
[all …]
/expo/packages/expo-modules-core/ios/Tests/
H A DExpoRequestCdpInterceptorSpec.swift18 private let mockDelegate = MockCdpInterceptorDelegate() variable
42 ExpoRequestCdpInterceptor.shared.setDelegate(self.mockDelegate) in spec()
46 self.mockDelegate.events.removeAll() in spec()
53 expect(self.mockDelegate.events.count).to(equal(5)) in spec()
65 json = self.parseJSON(data: self.mockDelegate.events[1]) in spec()
72 json = self.parseJSON(data: self.mockDelegate.events[2]) in spec()
83 json = self.parseJSON(data: self.mockDelegate.events[3]) in spec()
92 json = self.parseJSON(data: self.mockDelegate.events[4]) in spec()
109 expect(self.mockDelegate.events.count).to(equal(7)) in spec()
171 expect(self.mockDelegate.events.count).to(equal(5)) in spec()
[all …]
/expo/ios/versioned/sdk49/ExpoModulesCore/ios/Tests/
H A DExpoRequestCdpInterceptorSpec.swift18 private let mockDelegate = MockCdpInterceptorDelegate() variable
42 ExpoRequestCdpInterceptor.shared.setDelegate(self.mockDelegate) in spec()
46 self.mockDelegate.events.removeAll() in spec()
53 expect(self.mockDelegate.events.count).to(equal(5)) in spec()
65 json = self.parseJSON(data: self.mockDelegate.events[1]) in spec()
72 json = self.parseJSON(data: self.mockDelegate.events[2]) in spec()
83 json = self.parseJSON(data: self.mockDelegate.events[3]) in spec()
92 json = self.parseJSON(data: self.mockDelegate.events[4]) in spec()
109 expect(self.mockDelegate.events.count).to(equal(7)) in spec()
171 expect(self.mockDelegate.events.count).to(equal(5)) in spec()
[all …]