Skip to content

Commit 95f5545

Browse files
committed
Fix remaining contentsOfFile: warnings
1 parent 69aa110 commit 95f5545

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/AppTests/WebpageSnapshotTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ class WebpageSnapshotTests: SnapshotTestCase {
474474

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

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

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

0 commit comments

Comments
 (0)