updates plug with all sorts of awesome improvements
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import Foundation
|
||||
import PlakCore
|
||||
import Testing
|
||||
|
||||
@Suite struct WelcomeTextTests {
|
||||
@Test("the welcome page is the one welcome line in one block, created at the given date")
|
||||
func page() {
|
||||
let now = Date(timeIntervalSince1970: 1_793_000_000)
|
||||
let page = WelcomeText.page(createdAt: now)
|
||||
#expect(page.lines == [.text("Welcome to plak. For the docs, the tricks and the shortcuts, choose Plak Help in the menu bar icon.")])
|
||||
#expect(page.blocks.count == 1)
|
||||
#expect(page.dates == [0: now])
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user