Fixes HsitoryCOmponentTest

nightly-build-test
Jeff Boek 5 years ago committed by Colin Lee
parent 78ff152ad7
commit 9227f67545

@ -40,7 +40,7 @@ class HistoryComponentTest {
@Test @Test
fun `add and remove one history item normally`() { fun `add and remove one history item normally`() {
val historyItem = HistoryItem(123, "http://mozilla.org") val historyItem = HistoryItem(123, "http://mozilla.org", 0)
emitter.onNext(HistoryChange.Change(listOf(historyItem))) emitter.onNext(HistoryChange.Change(listOf(historyItem)))
emitter.onNext(HistoryChange.EnterEditMode(historyItem)) emitter.onNext(HistoryChange.EnterEditMode(historyItem))
@ -62,8 +62,8 @@ class HistoryComponentTest {
@Test @Test
fun `try making changes when not in edit mode`() { fun `try making changes when not in edit mode`() {
val historyItems = listOf( val historyItems = listOf(
HistoryItem(1337, "http://reddit.com"), HistoryItem(1337, "http://reddit.com", 0),
HistoryItem(31337, "http://leethaxor.com") HistoryItem(31337, "http://leethaxor.com", 0)
) )
emitter.onNext(HistoryChange.Change(historyItems)) emitter.onNext(HistoryChange.Change(historyItems))

Loading…
Cancel
Save