macos: fix unit tests for notFound change

This commit is contained in:
Mitchell Hashimoto
2025-10-10 09:45:32 -07:00
parent c8ea42b894
commit bac2419343
2 changed files with 3 additions and 3 deletions

View File

@@ -19,8 +19,8 @@ struct UpdateStateTests {
} }
@Test func testNotFoundEquality() { @Test func testNotFoundEquality() {
let state1: UpdateState = .notFound let state1: UpdateState = .notFound(.init(acknowledgement: {}))
let state2: UpdateState = .notFound let state2: UpdateState = .notFound(.init(acknowledgement: {}))
#expect(state1 == state2) #expect(state1 == state2)
} }

View File

@@ -64,7 +64,7 @@ struct UpdateViewModelTests {
@Test func testNotFoundText() { @Test func testNotFoundText() {
let viewModel = UpdateViewModel() let viewModel = UpdateViewModel()
viewModel.state = .notFound viewModel.state = .notFound(.init(acknowledgement: {}))
#expect(viewModel.text == "No Updates Available") #expect(viewModel.text == "No Updates Available")
} }