1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-03-12 09:20:13 +01:00

add missing test change

This commit is contained in:
Daniel Waxweiler 2021-12-09 19:05:29 +01:00
parent 34aaaa7db9
commit b0f4ea8d7a

View File

@ -66,7 +66,16 @@ test('#displayErrorMessage error message display', t => {
test('#displayErrorMessage group not found error message display', t => {
const list = t.context.list
displayErrorMessage({ data: 'group_not_found', list })
const data = {
response: {
errors: [
{
code: 'group_not_found'
}
]
}
}
displayErrorMessage({ data, list })
t.is(list.children[0].style.display, 'none')
t.is(list.children[1].style.display, 'block')
})