mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-16 05:41:09 +01:00
fixed internal errors getting thrown as .Unknown instead of .InternalError (fixes #84)
This commit is contained in:
1 parent
7fc3ad2890
commit
e4b6c06401
2 files changed
+20
-7
No files matched your search
@@ -147,7 +147,7 @@ final class ErrorTests: XCTestCase {
|
||||
"key3": NSDate()
|
||||
]
|
||||
)
|
||||
let error = CoreStoreError.InternalError(NSError: internalError)
|
||||
let error = CoreStoreError(internalError)
|
||||
XCTAssertEqual((error as NSError).domain, CoreStoreErrorDomain)
|
||||
XCTAssertEqual((error as NSError).code, CoreStoreErrorCode.InternalError.rawValue)
|
||||
|
||||
|
||||
Reference in new issue
Block a user