Skip to content

Commit 564323b

Browse files
Update CategorisedMocks.swift
1 parent 6fe6b2d commit 564323b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Sources/LetSee/Core/Services/CategorisedMocks.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ public struct CategorisedMocks: Hashable {
1212

1313
/// List of mocks belonging to the category
1414
public var mocks: [LetSeeMock]
15+
16+
public init(category: LetSeeMock.Category, mocks: [LetSeeMock]) {
17+
self.category = category
18+
self.mocks = mocks
19+
}
1520
}
1621

1722
public typealias RequestToMockMapper = ((_: URL, _ mocks: Dictionary<String, Set<LetSeeMock>>) -> CategorisedMocks?)

0 commit comments

Comments
 (0)