feat: #7088 created test for FetchedTags #1162

Merged
provira merged 9 commits from 7088-testFetchedTags into dev 2025-01-09 06:04:16 +00:00
1 changed files with 8 additions and 8 deletions
Showing only changes of commit 0d3b1130f9 - Show all commits

View File

@ -17,8 +17,8 @@ describe('tags computed property', () => {
value: 'value',
columns: 2,
},
});
expect(vm.vm.tags).toEqual({
}).vm;
expect(vm.tags).toEqual({
JavaScript: 'Programming Language',
Vue: 'Framework',
EmptyTag: '',
@ -32,8 +32,8 @@ describe('tags computed property', () => {
tag: 'tag',
value: 'value',
},
});
expect(vm.vm.tags).toEqual({});
}).vm;
expect(vm.tags).toEqual({});

Es mínimo el detalle pero la variable vm no se usa en ningún sitio, no tiene mas sentido hacer vm.tags?

Es mínimo el detalle pero la variable vm no se usa en ningún sitio, no tiene mas sentido hacer vm.tags?

solucionado

solucionado
});
it('should calculate the correct columnStyle when columns prop is defined', () => {
@ -50,14 +50,14 @@ describe('tags computed property', () => {
value: 'value',
columns: 2,
},
});
}).vm;
const expectedStyle = {
'grid-template-columns': 'repeat(2, 1fr)',
'max-width': '8rem',
};
expect(vm.vm.columnStyle).toEqual(expectedStyle);
expect(vm.columnStyle).toEqual(expectedStyle);
});
it('should return an empty object for columnStyle when columns prop is not defined', () => {
@ -74,8 +74,8 @@ describe('tags computed property', () => {
value: 'value',
columns: null,
},
});
}).vm;
expect(vm.vm.columnStyle).toEqual({});
expect(vm.columnStyle).toEqual({});

Es mínimo el detalle pero la variable vm no se usa en ningún sitio, no tiene mas sentido hacer vm.columnStyle?

Es mínimo el detalle pero la variable vm no se usa en ningún sitio, no tiene mas sentido hacer vm.columnStyle?

solucionado

solucionado
});
});