Skip to content

Commit e968d37

Browse files
Also make sure that email is still nil when updating email with userId.
1 parent fa20222 commit e968d37

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
@@ -178,6 +178,7 @@ class IterableAPITests: XCTestCase {
178178
TestUtils.validateElementPresent(withName: AnyHashable.ITBL_KEY_NEW_EMAIL, andValue: newEmail, inDictionary: body)
179179
TestUtils.validateElementPresent(withName: AnyHashable.ITBL_KEY_CURRENT_USER_ID, andValue: currentUserId, inDictionary: body)
180180
XCTAssertEqual(IterableAPI.userId, currentUserId)
181+
XCTAssertNil(IterableAPI.email)
181182
expectation.fulfill()
182183
},
183184
onFailure: {(reason, _) in

0 commit comments

Comments
 (0)