test: remove redundant singleton test in MarkedReadStore tests

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wangdl 2026-06-18 13:04:03 +08:00
parent cdc5c10076
commit 335859df0e
2 changed files with 2 additions and 13 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
.DS_Store
build/

View File

@ -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("")