mirror of
https://github.com/afollestad/nock-nock.git
synced 2025-04-20 19:45:17 +00:00
Fix ViewPresenterTest
This commit is contained in:
parent
8a1816c3e8
commit
92878c875e
1 changed files with 4 additions and 4 deletions
|
@ -63,7 +63,7 @@ class ViewSitePresenterTest {
|
|||
}.whenever(view)
|
||||
.scopeWhileAttached(any(), any())
|
||||
|
||||
val model = fakeModel().copy(lastCheck = 0)
|
||||
val model = fakeModel()
|
||||
val intent = fakeIntent("")
|
||||
whenever(intent.getSerializableExtra(KEY_VIEW_MODEL))
|
||||
.doReturn(model)
|
||||
|
@ -80,7 +80,7 @@ class ViewSitePresenterTest {
|
|||
val badIntent = fakeIntent("Hello World")
|
||||
presenter.onBroadcast(badIntent)
|
||||
|
||||
val model = fakeModel()
|
||||
val model = fakeModel().copy(lastCheck = 0)
|
||||
val goodIntent = fakeIntent(ACTION_STATUS_UPDATE)
|
||||
whenever(goodIntent.getSerializableExtra(KEY_UPDATE_MODEL))
|
||||
.doReturn(model)
|
||||
|
@ -94,7 +94,7 @@ class ViewSitePresenterTest {
|
|||
val badIntent = fakeIntent(ACTION_STATUS_UPDATE)
|
||||
presenter.onBroadcast(badIntent)
|
||||
|
||||
val model = fakeModel()
|
||||
val model = fakeModel().copy(lastCheck = 0)
|
||||
val goodIntent = fakeIntent(ACTION_STATUS_UPDATE)
|
||||
whenever(goodIntent.getSerializableExtra(KEY_VIEW_MODEL))
|
||||
.doReturn(model)
|
||||
|
@ -358,4 +358,4 @@ class ViewSitePresenterTest {
|
|||
on { getAction() } doReturn action
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue