#8647 fix vitest warnings #1467
|
@ -12,7 +12,7 @@ const props = defineProps({
|
|||
default: '',
|
||||
},
|
||||
filter: {
|
||||
type: [String, Object],
|
||||
type: Object,
|
||||
|
||||
default: null,
|
||||
},
|
||||
userFilter: {
|
||||
|
|
|
@ -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 () => {
|
||||
|
|
Loading…
Reference in New Issue
Mirar quien esta pasando un string y arreglar ese caso
fixed. también era un test