test: refs #8647 revert filter string
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Javier Segarra 2025-03-10 12:33:31 +01:00
parent dcceee3c3a
commit 92a7f2c33c
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ const props = defineProps({
default: '',
},
filter: {
type: [String, Object],
type: Object,
default: null,
},
userFilter: {

View File

@ -29,7 +29,7 @@ describe('CardSummary', () => {
propsData: {
dataKey: 'cardSummaryKey',
url: 'cardSummaryUrl',
filter: 'cardFilter',
filter: { key: 'cardFilter' },
},
});
vm = wrapper.vm;
@ -53,7 +53,7 @@ describe('CardSummary', () => {
it('should set correct props to the store', () => {
expect(vm.store.url).toEqual('cardSummaryUrl');
expect(vm.store.filter).toEqual('cardFilter');
expect(vm.store.filter).toEqual({ key: 'cardFilter' });
});
it('should respond to prop changes and refetch data', async () => {