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 => {
|
||||
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')
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue