Skip to content

Commit

Permalink
Fix SDKGeneratedMocks where getNotificationSettings is defined more t…
Browse files Browse the repository at this point in the history
…han once
  • Loading branch information
nimau committed Jul 12, 2023
1 parent 820a82e commit 59be796
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions ElementX/Sources/Mocks/Generated/SDKGeneratedMocks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -274,23 +274,7 @@ class SDKClientMock: SDKClientProtocol {
return getNotificationSettingsReturnValue
}
}
//MARK: - `getNotificationSettings`

public var getNotificationSettingsCallsCount = 0
public var getNotificationSettingsCalled: Bool {
return getNotificationSettingsCallsCount > 0
}
public var getNotificationSettingsReturnValue: NotificationSettings!
public var getNotificationSettingsClosure: (() -> NotificationSettings)?

public func `getNotificationSettings`() -> NotificationSettings {
getNotificationSettingsCallsCount += 1
if let getNotificationSettingsClosure = getNotificationSettingsClosure {
return getNotificationSettingsClosure()
} else {
return getNotificationSettingsReturnValue
}
}
//MARK: - `getProfile`

public var getProfileUserIdThrowableError: Error?
Expand Down

0 comments on commit 59be796

Please sign in to comment.