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
|
||||
build/
|
||||
|
||||
@ -81,19 +81,7 @@ final class MarkedReadStoreTests: XCTestCase {
|
||||
XCTAssertEqual(arr.count, 0)
|
||||
}
|
||||
|
||||
// MARK: - Persistence across instances
|
||||
|
||||
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
|
||||
// MARK: - Edge cases
|
||||
|
||||
func test_empty_string_as_id() {
|
||||
store.mark("")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user