test: remove redundant singleton test in MarkedReadStore tests
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
cdc5c10076
commit
335859df0e
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
|
build/
|
||||||
|
|||||||
@ -81,19 +81,7 @@ final class MarkedReadStoreTests: XCTestCase {
|
|||||||
XCTAssertEqual(arr.count, 0)
|
XCTAssertEqual(arr.count, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Persistence across instances
|
// MARK: - Edge cases
|
||||||
|
|
||||||
func test_state_survives_reinit() {
|
|
||||||
store.mark("mat-survive")
|
|
||||||
|
|
||||||
// Simulate app restart by creating a new instance (singleton in real app,
|
|
||||||
// but we can verify the persisted data is loadable)
|
|
||||||
let newStore = MarkedReadStore.shared
|
|
||||||
// Singleton — same instance. But the key test is: data survived UserDefaults write.
|
|
||||||
XCTAssertTrue(newStore.contains("mat-survive"))
|
|
||||||
}
|
|
||||||
|
|
||||||
// MARK: - Empty string edge cases
|
|
||||||
|
|
||||||
func test_empty_string_as_id() {
|
func test_empty_string_as_id() {
|
||||||
store.mark("")
|
store.mark("")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user