feat: refs #7055 created FilterItemForm test #1187
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#1187
Loading…
Reference in New Issue
No description provided.
Delete Branch "7055-testFilterItemForm"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
WIP: feat: refs #7055 created FilterItemForm testto feat: refs #7055 created FilterItemForm test@ -0,0 +1,78 @@
import { createWrapper, axios } from 'app/test/vitest/helper';
import FilterItemForm from 'components/FilterItemForm.vue';
src
así seguimos el standard de los test
Por ejemplo en la #1197 hemos puesto src/components
arreglado
@ -0,0 +28,4 @@
});
});
it('should filter data and populate tableRows for table display', async () => {
Este it, debería comprobar el filtro que se le pasa a la petición de axios.
En el siguiente it, si que se comprueba estando vacío, y aquí que tiene valores no se comprueba? Tendría que haber expect en ambos casos
añadido
@ -0,0 +41,4 @@
where: {"name":{"like":"%bolas de madera%"}},
};
expect(axios.get).toHaveBeenCalledWith('Items/withName', {
Es el mismo expect, pero creo que 2 ocurrencias se puede dar como bueno