Skip to content

Commit 69014a4

Browse files
Also make sure that email is still nil when updating email with userId.
1 parent ef88dda commit 69014a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tests/swift-sdk-swift-tests/IterableAPITests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ class IterableAPITests: XCTestCase {
206206
TestUtils.validateElementPresent(withName: AnyHashable.ITBL_KEY_NEW_EMAIL, andValue: newEmail, inDictionary: body)
207207
TestUtils.validateElementPresent(withName: AnyHashable.ITBL_KEY_CURRENT_USER_ID, andValue: currentUserId, inDictionary: body)
208208
XCTAssertEqual(IterableAPI.userId, currentUserId)
209+
XCTAssertNil(IterableAPI.email)
209210
expectation.fulfill()
210211
},
211212
onFailure: {(reason, _) in

0 commit comments

Comments
 (0)