Skip to content

Commit

Permalink
Add test for deriving hidden child file URL
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincestari committed Oct 29, 2021
1 parent cb8fae5 commit 379b1d8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Tests/ApolloCodegenTests/URLExtensionsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ class URLExtensionsTests: XCTestCase {
}
}
}

func testGettingHiddenChildFileURL() throws {
let parentURL = FileFinder.findParentFolder()
let filename = ".hiddenFile"

let expectedURL = parentURL.appendingPathComponent(filename, isDirectory: false)
let childURL = try parentURL.apollo.childFileURL(fileName: filename)

XCTAssertEqual(childURL, expectedURL)
}

func testIsDirectoryForExistingDirectory() {
let parentDirectory = FileFinder.findParentFolder()
Expand Down

0 comments on commit 379b1d8

Please sign in to comment.