15 lines
538 B
Swift
15 lines
538 B
Swift
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])
|
|
}
|
|
}
|