File tree 3 files changed +3
-5
lines changed
3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ public class PCKUtility {
144
144
UserDefaults . standard. removeObject ( forKey: ParseCareKitConstants . defaultACL)
145
145
UserDefaults . standard. synchronize ( )
146
146
}
147
-
147
+
148
148
/// Get the default ACL for `ParseCareKit` objects.
149
149
public class func getDefaultACL( ) -> ParseACL ? {
150
150
guard let aclString = UserDefaults . standard. value ( forKey: ParseCareKitConstants . defaultACL) as? String ,
Original file line number Diff line number Diff line change @@ -107,8 +107,7 @@ class ParseCareKitTests: XCTestCase {
107
107
try await KeychainStore . shared. deleteAll ( )
108
108
try await ParseStorage . shared. deleteAll ( )
109
109
try store. delete ( )
110
- UserDefaults . standard. removeObject ( forKey: ParseCareKitConstants . defaultACL)
111
- UserDefaults . standard. synchronize ( )
110
+ PCKUtility . removeCache ( )
112
111
}
113
112
114
113
func testSetDefaultACLLoggedIn( ) async throws {
Original file line number Diff line number Diff line change @@ -18,8 +18,7 @@ class UtilityTests: XCTestCase {
18
18
MockURLProtocol . removeAll ( )
19
19
try await KeychainStore . shared. deleteAll ( )
20
20
try await ParseStorage . shared. deleteAll ( )
21
- UserDefaults . standard. removeObject ( forKey: ParseCareKitConstants . defaultACL)
22
- UserDefaults . standard. synchronize ( )
21
+ PCKUtility . removeCache ( )
23
22
}
24
23
25
24
func testSetupServer( ) async throws {
You can’t perform that action at this time.
0 commit comments