1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-08 04:20:07 +02:00

Added test to parse the proxy address

This commit is contained in:
2022-03-31 18:27:26 +02:00
parent 94139a3669
commit 6470daf7d3
2 changed files with 28 additions and 7 deletions

View File

@ -33,4 +33,10 @@ class NginxConfigParserTest: XCTestCase {
)
}
func testCanDetermineProxy() throws {
let parsed = NginxConfigParser(filePath: NginxConfigParserTest.proxyUrl.path)
XCTAssertTrue(parsed.contents.contains("# valet stub: proxy.valet.conf"))
XCTAssertEqual("http://127.0.0.1:90", parsed.proxy)
}
}