Skip to content

Commit a890d78

Browse files
committed
Add testOverridenOnDisk
1 parent 40a8b30 commit a890d78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/iOS/Tests/Storage/StorageSupportTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ final class StorageSupportTests: XCTestCase {
187187
}
188188
}
189189

190-
func testOverriden() throws {
190+
func testOverridenOnDisk() throws {
191191
let intStorage = storage.transform(transformer: TransformerFactory.forCodable(ofType: Int.self))
192192
let stringStorage = storage.transform(transformer: TransformerFactory.forCodable(ofType: String.self))
193193

@@ -196,8 +196,8 @@ final class StorageSupportTests: XCTestCase {
196196
try intStorage.setObject(1, forKey: key)
197197
try stringStorage.setObject("hello world", forKey: key)
198198

199-
let intValue = try? intStorage.object(forKey: key)
200-
let stringValue = try? stringStorage.object(forKey: key)
199+
let intValue = try? intStorage.diskStorage.object(forKey: key)
200+
let stringValue = try? stringStorage.diskStorage.object(forKey: key)
201201

202202
XCTAssertNil(intValue)
203203
XCTAssertNotNil(stringValue)

0 commit comments

Comments
 (0)