Renamed the "error" static assets at the Resources folder in the Website service target as "not-found".

This commit is contained in:
2026-08-01 23:07:04 +02:00
parent 2c571233bc
commit a056f7f69a
6 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -268,7 +268,7 @@ struct AppTests {
) { response in
let body = String(buffer: response.body)
#expect(body.contains("/css/error.css?v="))
#expect(body.contains("/css/not-found.css?v="))
#expect(body.contains("/js/shared.js?v="))
}
}
@@ -54,12 +54,12 @@ private extension StaticFileTests {
static let fileExtensions: [[AssetExtension]] = [
[.png],
[.css, .js],
[.ico],
[.svg],
[.png],
[.png],
[.css, .js],
[.css, .js],
[.txt],
[.css, .js],
[.webmanifest],
@@ -67,12 +67,12 @@ private extension StaticFileTests {
]
static let fileNames: [String] = [
"apple-touch-icon",
"error",
"favicon",
"icon",
"icon-192",
"icon-512",
"index",
"not-found",
"robots",
"shared",
"site",
@@ -23,8 +23,8 @@ struct NotFoundPageTests {
#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/error.css"))
#expect(html.contains("/js/error.js"))
#expect(html.contains("/css/not-found.css"))
#expect(html.contains("/js/not-found.js"))
#expect(html.contains("/js/shared.js"))
}