mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
27 lines
724 B
TypeScript
27 lines
724 B
TypeScript
import { createTestingPinia } from '@pinia/testing';
|
|
import ChangePasswordModal from '@/components/ChangePasswordModal.vue';
|
|
import type { createPinia } from 'pinia';
|
|
import { createComponentRenderer } from '@/__tests__/render';
|
|
import { cleanupAppModals, createAppModals } from '@/__tests__/utils';
|
|
|
|
const renderComponent = createComponentRenderer(ChangePasswordModal);
|
|
|
|
describe('ChangePasswordModal', () => {
|
|
let pinia: ReturnType<typeof createPinia>;
|
|
|
|
beforeEach(() => {
|
|
createAppModals();
|
|
pinia = createTestingPinia({});
|
|
});
|
|
|
|
afterEach(() => {
|
|
cleanupAppModals();
|
|
});
|
|
|
|
it('should render correctly', () => {
|
|
const wrapper = renderComponent({ pinia });
|
|
|
|
expect(wrapper.html()).toMatchSnapshot();
|
|
});
|
|
});
|