Files
ccn/Services/Website/Tests/Library/Cases/Internal/Pages/IndexPageTests.swift
T
javier a0f5c79434 Renamed the WebsiteCore target in the Website service package as WebsiteLibrary. (#14)
This PR contains the work done to rename the _Website_ service's library SwiftPM target from `WebsiteCore` to `WebsiteLibrary`, updating every reference across the manifest, source, tests, Xcode schemes, and documentations.

Reviewed-on: rock-n-code/loud-amsterdam#14
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
2026-07-11 09:41:21 +00:00

30 lines
741 B
Swift

import Elementary
import Foundation
import Testing
@testable import WebsiteLibrary
@Suite("IndexPage page")
struct IndexPageTests {
// MARK: Functional tests
@Test
func `renders its markup`() {
let html = IndexPage(
locale: .init(identifier: "en")
).render()
#expect(html.contains("<!DOCTYPE html>"))
#expect(html.contains(#"lang="en""#))
#expect(html.contains("/css/style.css"))
#expect(html.contains("/favicon.ico"))
#expect(html.contains("/icon.svg"))
#expect(html.contains("/icon.png"))
#expect(html.contains("/site.webmanifest"))
#expect(html.contains("Hello world!"))
#expect(html.contains("/js/app.js"))
}
}