Skip to content

Commit

Permalink
Add identifier to all mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunn committed Feb 22, 2024
1 parent e505995 commit 0cb2a0e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -907,19 +907,19 @@ extension ProfileQuery {
extension ExtractedProfile {

static var mockWithRemovedDate: ExtractedProfile {
ExtractedProfile(id: 1, name: "Some name", profileUrl: "someURL", removedDate: Date())
ExtractedProfile(id: 1, name: "Some name", profileUrl: "someURL", removedDate: Date(), identifier: "someURL")
}

static var mockWithoutRemovedDate: ExtractedProfile {
ExtractedProfile(id: 1, name: "Some name", profileUrl: "someURL")
ExtractedProfile(id: 1, name: "Some name", profileUrl: "someURL", identifier: "someURL")
}

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

static func mockWithRemoveDate(_ date: Date) -> ExtractedProfile {
ExtractedProfile(id: 1, name: "Some name", profileUrl: "someURL", removedDate: date)
ExtractedProfile(id: 1, name: "Some name", profileUrl: "someURL", removedDate: date, identifier: "someURL")
}
}

Expand Down

0 comments on commit 0cb2a0e

Please sign in to comment.