feat: #7079 created VnLocation front test #1126
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#1126
Loading…
Reference in New Issue
No description provided.
Delete Branch "7079-testVnLocation"
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?
@ -0,0 +5,4 @@
function buildComponent(data) {
return createWrapper(VnLocation, {
global: {
stubs: [''],
Que hace esta linea?
Si la eliminas que ocurre?
Si al montar
@ -0,0 +53,4 @@
it('should return the country', () => {
const location = { ...locationBase, postcode: undefined, city: undefined, province: undefined };
const vm = buildComponent(location);
const parts = vm.formatLocation(location);
porque lo has llamado parts?
Es significativo?
No, el nombre se podria cambiar y no pasaria nada. De hecho seria mas correcto llamarlo algo como "resultado"
Otra opción, si solo vas a usar en 1 sitio el resultado de vm.formatLocation, es que lo pongas como argumento en el expect. Porque, porque vas a crear una variable de 1 uso??
Si tienes dudas, me comentas