Commit 35f58d23 authored by Joey's avatar Joey

test: fix viewModel initialization

in glucoseEditor getInsulin() test
Signed-off-by: Joey's avatarJoey <bevilacquajoey@gmail.com>
parent eccd9f58
......@@ -101,9 +101,11 @@ class GlucoseEditorViewModelTest : DbTest() {
@Test
fun getInsulin() {
viewModel.getInsulin(testInsulin.uid).run {
assertThat(uid).isEqualTo(testInsulin.uid)
assertThat(this).isEqualTo(testInsulin)
viewModel.prepare {
viewModel.getInsulin(testInsulin.uid).run {
assertThat(uid).isEqualTo(testInsulin.uid)
assertThat(this).isEqualTo(testInsulin)
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment