mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-11-07 21:20:07 +01:00
♻️ Migrate more tests to Swift Testing
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
import Testing
|
||||
import Foundation
|
||||
|
||||
@Suite("Parsers")
|
||||
struct ValetConfigurationTest {
|
||||
static var jsonConfigFileUrl: URL {
|
||||
return TestBundle.url(
|
||||
@@ -18,8 +17,7 @@ struct ValetConfigurationTest {
|
||||
)!
|
||||
}
|
||||
|
||||
@Test("Can load config file")
|
||||
func can_load_config_file() throws {
|
||||
@Test func can_load_config_file() throws {
|
||||
let json = try? String(
|
||||
contentsOf: Self.jsonConfigFileUrl,
|
||||
encoding: .utf8
|
||||
@@ -37,5 +35,4 @@ struct ValetConfigurationTest {
|
||||
#expect(config.defaultSite == "/Users/username/default-site")
|
||||
#expect(config.loopback == "127.0.0.1")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user