Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunn committed Feb 22, 2024
1 parent 469dd5b commit e505995
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ struct ExtractedProfile: Codable, Sendable {
addresses = try container.decodeIfPresent([AddressCityState].self, forKey: .addresses)
phoneNumbers = try container.decodeIfPresent([String].self, forKey: .phoneNumbers)
relatives = try container.decodeIfPresent([String].self, forKey: .relatives)
profileUrl = try container.decode(String.self, forKey: .profileUrl)
profileUrl = try container.decodeIfPresent(String.self, forKey: .profileUrl)
reportId = try container.decodeIfPresent(String.self, forKey: .reportId)
age = try container.decodeIfPresent(String.self, forKey: .age)
email = try container.decodeIfPresent(String.self, forKey: .email)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ final class DataBrokerProfileQueryOperationManagerTests: XCTestCase {
let historyEvents = [HistoryEvent(extractedProfileId: extractedProfileId, brokerId: brokerId, profileQueryId: profileQueryId, type: .optOutRequested)]
let mockScanOperation = ScanOperationData(brokerId: brokerId, profileQueryId: profileQueryId, preferredRunDate: currentPreferredRunDate, historyEvents: historyEvents)

let extractedProfileSaved1 = ExtractedProfile(id: 1, name: "Some name", profileUrl: "abc")
let extractedProfileSaved2 = ExtractedProfile(id: 1, name: "Some name", profileUrl: "zxz")
let extractedProfileSaved1 = ExtractedProfile(id: 1, name: "Some name", profileUrl: "abc", identifier: "abc")
let extractedProfileSaved2 = ExtractedProfile(id: 1, name: "Some name", profileUrl: "zxz", identifier: "zxz")

let optOutData = [OptOutOperationData.mock(with: extractedProfileSaved1),
OptOutOperationData.mock(with: extractedProfileSaved2)]
Expand Down Expand Up @@ -915,7 +915,7 @@ extension ExtractedProfile {
}

static var mockWithoutId: ExtractedProfile {
ExtractedProfile(name: "Some name", profileUrl: "someOtherURL")
ExtractedProfile(name: "Some name", profileUrl: "someOtherURL", identifier: "ABC")
}

static func mockWithRemoveDate(_ date: Date) -> ExtractedProfile {
Expand Down

0 comments on commit e505995

Please sign in to comment.