Initial commit.

This commit is contained in:
2026-08-19 23:19:08 +02:00
commit 22e737d9c2
153 changed files with 11680 additions and 0 deletions
@@ -0,0 +1,31 @@
import Elementary
import Foundation
import Testing
@testable import WebsiteLibrary
@Suite(
"NotFoundPage page",
.tags(.page)
)
struct NotFoundPageTests {
// MARK: Functional tests
@Test
func `renders its markup`() {
let html = NotFoundPage(
locale: .init(identifier: "en")
).render()
#expect(html.contains("<!DOCTYPE html>"))
#expect(html.contains(#"lang="en""#))
#expect(html.contains("Page Not Found"))
#expect(html.contains("Sorry, but the page you were trying to view does not exist."))
#expect(html.contains("/css/shared.css"))
#expect(html.contains("/css/not-found.css"))
#expect(html.contains("/js/not-found.js"))
#expect(html.contains("/js/shared.js"))
}
}