list all demarches, filtered by zones

This commit is contained in:
Christophe Robillard 2022-10-24 16:43:18 +02:00
parent f9f31b721a
commit 9abf1c4af3
10 changed files with 182 additions and 1 deletions

View file

@ -4,6 +4,7 @@ import {
show,
hide,
toggle,
toggleExpandIcon,
isSelectElement,
isTextInputElement,
isCheckboxOrRadioInputElement
@ -34,6 +35,20 @@ suite('@utils', () => {
expect(input.classList.contains('hidden')).toBeFalsy();
});
test('toggleExpandIcon', () => {
const icon = document.createElement('icon');
icon.classList.add('fr-icon-add-line');
toggleExpandIcon(icon);
console.log(icon.outerHTML);
expect(icon.classList.contains('fr-icon-subtract-line')).toBeTruthy();
expect(icon.classList.contains('fr-icon-add-line')).toBeFalsy();
toggleExpandIcon(icon);
expect(icon.classList.contains('fr-icon-add-line')).toBeTruthy();
expect(icon.classList.contains('fr-icon-subtract-line')).toBeFalsy();
console.log(icon.outerHTML);
});
test('isSelectElement', () => {
const select = document.createElement('select');
const input = document.createElement('input');