Skip to content

Commit

Permalink
Fix remaining contentsOfFile: warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
finestructure committed Dec 6, 2024
1 parent 69aa110 commit 95f5545
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/AppTests/WebpageSnapshotTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ class WebpageSnapshotTests: SnapshotTestCase {

func test_DocCTemplate() throws {
let doccTemplatePath = fixturesDirectory().appendingPathComponent("docc-template.html").path
let doccHtml = try String(contentsOfFile: doccTemplatePath)
let doccHtml = try String(contentsOfFile: doccTemplatePath, encoding: .utf8)
let archive = DocArchive(name: "archive1", title: "Archive1")
let processor = try XCTUnwrap(DocumentationPageProcessor(repositoryOwner: "owner",
repositoryOwnerName: "Owner Name",
Expand All @@ -501,7 +501,7 @@ class WebpageSnapshotTests: SnapshotTestCase {

func test_DocCTemplate_outdatedStableVersion() throws {
let doccTemplatePath = fixturesDirectory().appendingPathComponent("docc-template.html").path
let doccHtml = try String(contentsOfFile: doccTemplatePath)
let doccHtml = try String(contentsOfFile: doccTemplatePath, encoding: .utf8)
let archive = DocArchive(name: "archive1", title: "Archive1")
let processor = try XCTUnwrap(DocumentationPageProcessor(repositoryOwner: "owner",
repositoryOwnerName: "Owner Name",
Expand Down Expand Up @@ -532,7 +532,7 @@ class WebpageSnapshotTests: SnapshotTestCase {

func test_DocCTemplate_multipleVersions() throws {
let doccTemplatePath = fixturesDirectory().appendingPathComponent("docc-template.html").path
let doccHtml = try String(contentsOfFile: doccTemplatePath)
let doccHtml = try String(contentsOfFile: doccTemplatePath, encoding: .utf8)
let archive1 = DocArchive(name: "archive1", title: "Archive1")
let archive2 = DocArchive(name: "archive2", title: "Archive2")
let processor = try XCTUnwrap(DocumentationPageProcessor(repositoryOwner: "owner",
Expand Down

0 comments on commit 95f5545

Please sign in to comment.