mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-04-24 00:00:05 +08:00
Early exit if settings is nil and use short format for nil checking
This commit is contained in:
@@ -75,15 +75,9 @@ class OpenVPNConfigurationTests: XCTestCase {
|
||||
|
||||
configuration.settings = [:]
|
||||
XCTAssert(configuration.settings == nil, "Empty settings should return nil")
|
||||
}
|
||||
|
||||
func testCreateConfiguration() {
|
||||
let configuration = OpenVPNConfiguration()
|
||||
|
||||
let some = configuration.fileContent
|
||||
|
||||
let test = "Some String".data(using: .utf8)
|
||||
configuration.fileContent = test
|
||||
configuration.settings = nil
|
||||
XCTAssert(configuration.settings == nil, "Empty settings should return nil")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user