1
0
Fork 0

Fixes HsitoryCOmponentTest

master
Jeff Boek 2019-03-25 12:51:55 -07:00 committed by Colin Lee
parent 78ff152ad7
commit 9227f67545
1 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ class HistoryComponentTest {
@Test
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.EnterEditMode(historyItem))
@ -62,8 +62,8 @@ class HistoryComponentTest {
@Test
fun `try making changes when not in edit mode`() {
val historyItems = listOf(
HistoryItem(1337, "http://reddit.com"),
HistoryItem(31337, "http://leethaxor.com")
HistoryItem(1337, "http://reddit.com", 0),
HistoryItem(31337, "http://leethaxor.com", 0)
)
emitter.onNext(HistoryChange.Change(historyItems))