test(VnTable): refs #8197 mock useFilterParams
gitea/salix-front/pipeline/pr-beta This commit looks good
Details
gitea/salix-front/pipeline/pr-beta This commit looks good
Details
This commit is contained in:
parent
32fd07dd14
commit
8c3c318099
|
@ -1,4 +1,4 @@
|
|||
import { describe, expect, it, beforeAll, beforeEach } from 'vitest';
|
||||
import { describe, expect, it, beforeAll, beforeEach, vi } from 'vitest';
|
||||
import { createWrapper } from 'app/test/vitest/helper';
|
||||
import VnTable from 'src/components/VnTable/VnTable.vue';
|
||||
|
||||
|
@ -13,6 +13,15 @@ describe('VnTable', () => {
|
|||
},
|
||||
});
|
||||
vm = wrapper.vm;
|
||||
|
||||
vi.mock('src/composables/useFilterParams', () => {
|
||||
return {
|
||||
useFilterParams: vi.fn(() => ({
|
||||
params: {},
|
||||
orders: {},
|
||||
})),
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
beforeEach(() => (vm.selected = []));
|
||||
|
|
Loading…
Reference in New Issue