mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-17 23:13:52 +01:00
WIP: Unit tests
This commit is contained in:
@@ -78,10 +78,6 @@ public extension DataStack {
|
||||
NSThread.isMainThread(),
|
||||
"Attempted to observe objects from \(cs_typeName(self)) outside the main thread."
|
||||
)
|
||||
CoreStore.assert(
|
||||
fetchClauses.contains { $0 is OrderBy },
|
||||
"A ListMonitor requires an OrderBy clause."
|
||||
)
|
||||
return ListMonitor(
|
||||
dataStack: self,
|
||||
from: from,
|
||||
@@ -118,10 +114,6 @@ public extension DataStack {
|
||||
NSThread.isMainThread(),
|
||||
"Attempted to observe objects from \(cs_typeName(self)) outside the main thread."
|
||||
)
|
||||
CoreStore.assert(
|
||||
fetchClauses.contains { $0 is OrderBy },
|
||||
"A ListMonitor requires an OrderBy clause."
|
||||
)
|
||||
_ = ListMonitor(
|
||||
dataStack: self,
|
||||
from: from,
|
||||
@@ -163,10 +155,6 @@ public extension DataStack {
|
||||
NSThread.isMainThread(),
|
||||
"Attempted to observe objects from \(cs_typeName(self)) outside the main thread."
|
||||
)
|
||||
CoreStore.assert(
|
||||
fetchClauses.contains { $0 is OrderBy },
|
||||
"A ListMonitor requires an OrderBy clause."
|
||||
)
|
||||
|
||||
return ListMonitor(
|
||||
dataStack: self,
|
||||
@@ -206,10 +194,6 @@ public extension DataStack {
|
||||
NSThread.isMainThread(),
|
||||
"Attempted to observe objects from \(cs_typeName(self)) outside the main thread."
|
||||
)
|
||||
CoreStore.assert(
|
||||
fetchClauses.contains { $0 is OrderBy },
|
||||
"A ListMonitor requires an OrderBy clause."
|
||||
)
|
||||
|
||||
_ = ListMonitor(
|
||||
dataStack: self,
|
||||
|
||||
Reference in New Issue
Block a user