2022-03-11 10:25:30 +00:00
|
|
|
import { installQuasarPlugin } from '@quasar/quasar-app-extension-testing-unit-jest';
|
|
|
|
import { describe, expect, it } from '@jest/globals';
|
|
|
|
import { mount } from '@vue/test-utils';
|
|
|
|
import MyDialog from './demo/MyDialog';
|
|
|
|
|
|
|
|
installQuasarPlugin();
|
|
|
|
|
|
|
|
describe('MyDialog', () => {
|
2022-03-11 10:39:56 +00:00
|
|
|
it('should mount MyDialog', () => {
|
|
|
|
const wrapper = mount(MyDialog, {
|
|
|
|
data: () => ({
|
|
|
|
isDialogOpen: true,
|
|
|
|
}),
|
|
|
|
});
|
2022-03-11 10:25:30 +00:00
|
|
|
|
2022-03-11 10:39:56 +00:00
|
|
|
expect(wrapper.exists()).toBe(true);
|
|
|
|
});
|
2022-03-11 10:25:30 +00:00
|
|
|
});
|