mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-16 14:56:10 +00:00
macos: fix unit tests for notFound change
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user