File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
sample/ios/ReactNativeTests Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ class ShopifyCheckoutSheetKitTests: XCTestCase {
175175
176176 XCTAssertTrue ( mock. didSendEvent)
177177 if let eventBody = mock. eventBody as? [ String : Any ] {
178+ XCTAssertEqual ( eventBody [ " type " ] as? String , " STANDARD " )
178179 XCTAssertEqual ( eventBody [ " id " ] as? String , " test " )
179180 XCTAssertEqual ( eventBody [ " name " ] as? String , " test " )
180181 XCTAssertEqual ( eventBody [ " timestamp " ] as? String , " test " )
@@ -185,7 +186,6 @@ class ShopifyCheckoutSheetKitTests: XCTestCase {
185186 " referrer " : " test "
186187 ]
187188 ] )
188- XCTAssertNil ( eventBody [ " data " ] )
189189 } else {
190190 XCTFail ( " Failed to parse standard event " )
191191 }
@@ -212,6 +212,7 @@ class ShopifyCheckoutSheetKitTests: XCTestCase {
212212
213213 XCTAssertTrue ( mock. didSendEvent)
214214 if let eventBody = mock. eventBody as? [ String : Any ] {
215+ XCTAssertEqual ( eventBody [ " type " ] as? String , " CUSTOM " )
215216 XCTAssertEqual ( eventBody [ " id " ] as? String , " test " )
216217 XCTAssertEqual ( eventBody [ " name " ] as? String , " test " )
217218 XCTAssertEqual ( eventBody [ " timestamp " ] as? String , " test " )
You can’t perform that action at this time.
0 commit comments