1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00

fix showing group not found error in block

This commit is contained in:
Daniel Waxweiler
2025-05-23 21:21:04 +02:00
parent 3e2aac7657
commit 10f4f3eceb
4 changed files with 13 additions and 16 deletions

View File

@ -83,13 +83,7 @@ test('#displayErrorMessage general error message display', (t) => {
test('#displayErrorMessage group not found error message display', (t) => {
const container = t.context.container
const data = {
response: {
errors: [
{
code: 'group_not_found',
},
],
},
code: 'group_not_found',
}
displayErrorMessage({ data, container })
t.is(container.querySelector('.general-error').style.display, 'none')