before the great git rework
This commit is contained in:
@@ -11,7 +11,6 @@ struct WorkspaceHarness {
|
||||
let git: FakeGit
|
||||
let files: FakeFiles
|
||||
let config: FakeConfig
|
||||
let notes: FakeNotes
|
||||
let symbols: FakeSymbols
|
||||
let recentFiles: FakeRecentFiles
|
||||
let recents: FakeRecentProjects
|
||||
@@ -27,13 +26,12 @@ struct WorkspaceHarness {
|
||||
var last: FakeWatcher? { made.last }
|
||||
}
|
||||
|
||||
init(root: URL? = URL(fileURLWithPath: "/fake/project"), config: HelderConfig = .defaults, note: String = "",
|
||||
init(root: URL? = URL(fileURLWithPath: "/fake/project"), config: HelderConfig = .defaults,
|
||||
git: GitSnapshot? = nil, tree: FileNode = sampleTree(), contents: [String: String] = [:],
|
||||
recents: [RecentProject] = [], session: FakeSession = FakeSession()) {
|
||||
let git = FakeGit(git)
|
||||
let files = FakeFiles(tree: tree, contents: contents, root: root ?? URL(fileURLWithPath: "/"))
|
||||
let config = FakeConfig(config)
|
||||
let notes = FakeNotes(note)
|
||||
let symbols = FakeSymbols()
|
||||
let recentFiles = FakeRecentFiles()
|
||||
let recentStore = FakeRecentProjects(recents)
|
||||
@@ -45,7 +43,7 @@ struct WorkspaceHarness {
|
||||
recentProjects: recentStore, session: session, layouts: layouts, system: system, speech: speech,
|
||||
makeWorkspace: { _ in
|
||||
WorkspaceServices(git: git, files: files, search: FakeSearch(), symbols: symbols,
|
||||
config: config, notes: notes, recentFiles: recentFiles)
|
||||
config: config, recentFiles: recentFiles)
|
||||
},
|
||||
makeWatcher: {
|
||||
let watcher = FakeWatcher()
|
||||
@@ -58,7 +56,6 @@ struct WorkspaceHarness {
|
||||
self.git = git
|
||||
self.files = files
|
||||
self.config = config
|
||||
self.notes = notes
|
||||
self.symbols = symbols
|
||||
self.recentFiles = recentFiles
|
||||
self.recents = recentStore
|
||||
|
||||
Reference in New Issue
Block a user