adds schema view and schema generating command
This commit is contained in:
@@ -102,6 +102,26 @@ private struct MemorySession: SessionStoring {
|
||||
#expect(!layout.isGitViewOpen)
|
||||
}
|
||||
|
||||
@Test func theSchemaAndGitViewsCloseEachOtherAndNeitherSurvivesASwitch() {
|
||||
let store = FakeLayouts()
|
||||
let layout = LayoutStore(session: MemorySession(), persistence: store)
|
||||
layout.restore(root: "/p")
|
||||
layout.openGitView()
|
||||
layout.openSchemaView()
|
||||
#expect(layout.isSchemaViewOpen)
|
||||
#expect(!layout.isGitViewOpen)
|
||||
layout.toggleGitView()
|
||||
#expect(layout.isGitViewOpen)
|
||||
#expect(!layout.isSchemaViewOpen)
|
||||
layout.openSchemaView()
|
||||
#expect(store.saved["/p"] == nil)
|
||||
layout.restore(root: "/q")
|
||||
#expect(!layout.isSchemaViewOpen)
|
||||
layout.openSchemaView()
|
||||
layout.closeSchemaView()
|
||||
#expect(!layout.isSchemaViewOpen)
|
||||
}
|
||||
|
||||
@Test func theGitViewIsNeitherSavedNorKeptAcrossAProjectSwitch() {
|
||||
let store = FakeLayouts()
|
||||
let layout = LayoutStore(session: MemorySession(), persistence: store)
|
||||
|
||||
Reference in New Issue
Block a user