test: refs #8647 revert filter string
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
dcceee3c3a
commit
92a7f2c33c
|
@ -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