Fixed matchMedia tests
parent
72e0e3711d
commit
4092e43465
|
@ -5,6 +5,17 @@ config.global.mocks['$primevue'] = {
|
||||||
config: defaultOptions
|
config: defaultOptions
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Object.defineProperty(window, 'matchMedia', {
|
||||||
|
writable: true,
|
||||||
|
value: vi.fn().mockImplementation((query) => ({
|
||||||
|
matches: false,
|
||||||
|
media: query,
|
||||||
|
onchange: null,
|
||||||
|
addEventListener: vi.fn(),
|
||||||
|
removeEventListener: vi.fn()
|
||||||
|
}))
|
||||||
|
});
|
||||||
|
|
||||||
describe('PrimeVue.vue', () => {
|
describe('PrimeVue.vue', () => {
|
||||||
it('should exist', async () => {});
|
it('should exist', async () => {});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue