Skip to content

Commit 6e84b67

Browse files
committed
fix(test): add missing saveWorkspaces method to MockWorkspaceController
1 parent 98eb66f commit 6e84b67

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

DockMasterProTests/Mocks/MockWorkspaceController.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ final class MockWorkspaceController: WorkspaceControlling {
4848
}
4949
}
5050

51+
func saveWorkspaces(_ workspaces: [Workspace]) async throws {
52+
if let error = stubbedError {
53+
throw error
54+
}
55+
stubbedWorkspaces = workspaces
56+
}
57+
5158
func deleteWorkspace(id: UUID) async throws {
5259
deleteWorkspaceCalled = true
5360
if let error = stubbedError {

0 commit comments

Comments
 (0)