Improves Git's user interface
This commit is contained in:
@@ -3,6 +3,17 @@ import CoreGraphics
|
||||
import Testing
|
||||
|
||||
@Suite struct GitStripLayoutTests {
|
||||
@Test func belowTheBreakpointTheBodyKeepsTheBottomStrip() {
|
||||
#expect(GitBodyMode(width: 1599) == .bottomStrip)
|
||||
#expect(GitBodyMode(width: 1024) == .bottomStrip)
|
||||
}
|
||||
|
||||
@Test func fromTheBreakpointTheBodyUsesSideColumns() {
|
||||
#expect(GitBodyMode(width: GitMetrics.sideColumnsMinWidth) == .sideColumns)
|
||||
#expect(GitBodyMode(width: 1600) == .sideColumns)
|
||||
#expect(GitBodyMode(width: 2560) == .sideColumns)
|
||||
}
|
||||
|
||||
@Test func aNarrowStripSplitsEvenlyWithoutTheCommitList() {
|
||||
let layout = GitStripLayout(width: 1201)
|
||||
#expect(layout.console == 600)
|
||||
|
||||
Reference in New Issue
Block a user