mirror of
https://github.com/dwaxweiler/connector-mobilizon
synced 2025-04-19 04:47:26 +02:00
add missing test change
This commit is contained in:
parent
34aaaa7db9
commit
b0f4ea8d7a
@ -66,7 +66,16 @@ test('#displayErrorMessage error message display', t => {
|
|||||||
|
|
||||||
test('#displayErrorMessage group not found error message display', t => {
|
test('#displayErrorMessage group not found error message display', t => {
|
||||||
const list = t.context.list
|
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[0].style.display, 'none')
|
||||||
t.is(list.children[1].style.display, 'block')
|
t.is(list.children[1].style.display, 'block')
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user