add missing test change

This commit is contained in:
Daniel Waxweiler 2021-12-09 19:05:29 +01:00
parent 34aaaa7db9
commit b0f4ea8d7a
1 changed files with 10 additions and 1 deletions

View File

@ -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')
}) })