primevue-mirror/components/lib/config/PrimeVue.spec.js

22 lines
511 B
JavaScript
Raw Normal View History

import { config } from '@vue/test-utils';
import { defaultOptions } from 'primevue/config';
config.global.mocks['$primevue'] = {
config: defaultOptions
};
2023-04-28 14:06:05 +00:00
2023-11-21 14:34:41 +00:00
Object.defineProperty(window, 'matchMedia', {
writable: true,
value: vi.fn().mockImplementation((query) => ({
matches: false,
media: query,
onchange: null,
addEventListener: vi.fn(),
removeEventListener: vi.fn()
}))
});
2023-04-28 14:06:05 +00:00
describe('PrimeVue.vue', () => {
it('should exist', async () => {});
});