fix: compile issues
This commit is contained in:
parent
35f4643c5c
commit
639ea75bfe
|
@ -40,12 +40,11 @@ class CreateGroupTests {
|
||||||
AppTheme {
|
AppTheme {
|
||||||
CreateGroup(
|
CreateGroup(
|
||||||
viewState = ViewState.DEFAULT,
|
viewState = ViewState.DEFAULT,
|
||||||
createGroupState = CreateGroupState("", "", emptySet()),
|
|
||||||
onCreate = { submitted ->
|
|
||||||
postedGroup = submitted
|
|
||||||
},
|
|
||||||
onBack = { backPressed = true },
|
onBack = { backPressed = true },
|
||||||
onClose = { closePressed = true })
|
onClose = { closePressed = true },
|
||||||
|
onSelectContact = {},
|
||||||
|
updateState = {}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +66,6 @@ class CreateGroupTests {
|
||||||
val nameDesc = application.getString(R.string.AccessibilityId_closed_group_edit_group_name)
|
val nameDesc = application.getString(R.string.AccessibilityId_closed_group_edit_group_name)
|
||||||
val buttonDesc = application.getString(R.string.AccessibilityId_create_closed_group_create_button)
|
val buttonDesc = application.getString(R.string.AccessibilityId_create_closed_group_create_button)
|
||||||
|
|
||||||
var postedGroup: CreateGroupState? = null
|
|
||||||
var backPressed = false
|
var backPressed = false
|
||||||
var closePressed = false
|
var closePressed = false
|
||||||
|
|
||||||
|
@ -75,12 +73,11 @@ class CreateGroupTests {
|
||||||
AppTheme {
|
AppTheme {
|
||||||
CreateGroup(
|
CreateGroup(
|
||||||
viewState = ViewState.DEFAULT,
|
viewState = ViewState.DEFAULT,
|
||||||
createGroupState = CreateGroupState("", "", emptySet()),
|
|
||||||
onCreate = { submitted ->
|
|
||||||
postedGroup = submitted
|
|
||||||
},
|
|
||||||
onBack = { backPressed = true },
|
onBack = { backPressed = true },
|
||||||
onClose = { closePressed = true })
|
onClose = { closePressed = true },
|
||||||
|
updateState = {},
|
||||||
|
onSelectContact = {}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
with(composeTest) {
|
with(composeTest) {
|
||||||
|
@ -88,7 +85,6 @@ class CreateGroupTests {
|
||||||
onNode(hasContentDescriptionExactly(buttonDesc)).performClick()
|
onNode(hasContentDescriptionExactly(buttonDesc)).performClick()
|
||||||
}
|
}
|
||||||
|
|
||||||
assertThat(postedGroup, nullValue())
|
|
||||||
assertThat(backPressed, equalTo(false))
|
assertThat(backPressed, equalTo(false))
|
||||||
assertThat(closePressed, equalTo(false))
|
assertThat(closePressed, equalTo(false))
|
||||||
}
|
}
|
||||||
|
@ -106,12 +102,11 @@ class CreateGroupTests {
|
||||||
AppTheme {
|
AppTheme {
|
||||||
CreateGroup(
|
CreateGroup(
|
||||||
viewState = ViewState.DEFAULT,
|
viewState = ViewState.DEFAULT,
|
||||||
createGroupState = CreateGroupState("", "", emptySet()),
|
|
||||||
onCreate = { submitted ->
|
|
||||||
postedGroup = submitted
|
|
||||||
},
|
|
||||||
onBack = { backPressed = true },
|
onBack = { backPressed = true },
|
||||||
onClose = { })
|
onClose = {},
|
||||||
|
onSelectContact = {},
|
||||||
|
updateState = {}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -136,12 +131,11 @@ class CreateGroupTests {
|
||||||
AppTheme {
|
AppTheme {
|
||||||
CreateGroup(
|
CreateGroup(
|
||||||
viewState = ViewState.DEFAULT,
|
viewState = ViewState.DEFAULT,
|
||||||
createGroupState = CreateGroupState("", "", emptySet()),
|
|
||||||
onCreate = { submitted ->
|
|
||||||
postedGroup = submitted
|
|
||||||
},
|
|
||||||
onBack = { },
|
onBack = { },
|
||||||
onClose = { closePressed = true })
|
onClose = { closePressed = true },
|
||||||
|
onSelectContact = {},
|
||||||
|
updateState = {}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue