mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 20:10:08 +02:00
✅ Added test to parse the proxy address
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user