Skip to content

Commit

Permalink
Fixed up the final site map test.
Browse files Browse the repository at this point in the history
  • Loading branch information
daveverwer committed Nov 8, 2023
1 parent f71ca1a commit 3e4000e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/AppTests/SitemapTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class SitemapTests: SnapshotTestCase {
as: .init(pathExtension: "xml", diffing: .lines))
}

@MainActor
func test_siteMap_basic_request() async throws {
// Test basic sitemap request
// setup
Expand All @@ -75,7 +76,7 @@ class SitemapTests: SnapshotTestCase {

// Validation
assertSnapshot(matching: siteMap.render(indentedBy: .spaces(2)),
as: .init(pathExtension: "xml", diffing: .lines), record: true)
as: .init(pathExtension: "xml", diffing: .lines))
}

func test_linkablePathUrls() async throws {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<url>
<loc>http://localhost:8080/Owner/Repo0</loc>
<lastmod>1970-01-01</lastmod>
</url>
</urlset>

0 comments on commit 3e4000e

Please sign in to comment.