|
|
@ -432,7 +432,7 @@ class ClockerUnitTests: XCTestCase { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func testDefaultsWiping() { |
|
|
|
func testDefaultsWiping() { |
|
|
|
let defaultsDict: [String: Any] = ["test1" : "testString", "test2": 24] |
|
|
|
let defaultsDict: [String: Any] = ["test1": "testString", "test2": 24] |
|
|
|
let domainName = "com.test.clocker" |
|
|
|
let domainName = "com.test.clocker" |
|
|
|
let defaults = UserDefaults(suiteName: domainName) |
|
|
|
let defaults = UserDefaults(suiteName: domainName) |
|
|
|
defaults?.setPersistentDomain(defaultsDict, forName: domainName) |
|
|
|
defaults?.setPersistentDomain(defaultsDict, forName: domainName) |
|
|
@ -440,5 +440,4 @@ class ClockerUnitTests: XCTestCase { |
|
|
|
XCTAssertNil(defaults?.object(forKey: "test1")) |
|
|
|
XCTAssertNil(defaults?.object(forKey: "test1")) |
|
|
|
XCTAssertNil(defaults?.object(forKey: "test2")) |
|
|
|
XCTAssertNil(defaults?.object(forKey: "test2")) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|