2022-09-06 12:03:37 +00:00
|
|
|
import { mount } from '@vue/test-utils';
|
|
|
|
import SplitterPanel from './SplitterPanel.vue';
|
|
|
|
|
|
|
|
describe('SplitterPanel.vue', () => {
|
|
|
|
let wrapper;
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
wrapper = mount(SplitterPanel, {
|
|
|
|
attrs: {
|
|
|
|
class: 'flex align-items-center justify-content-center'
|
|
|
|
},
|
|
|
|
slots: {
|
|
|
|
default: 'Panel 1'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should exist', () => {
|
2024-05-21 07:15:51 +00:00
|
|
|
expect(wrapper.find('.p-splitterpanel').exists()).toBe(true);
|
|
|
|
expect(wrapper.attributes().class).toBe('p-splitterpanel flex align-items-center justify-content-center');
|
|
|
|
expect(wrapper.find('.p-splitterpanel').text()).toBe('Panel 1');
|
2022-09-06 12:03:37 +00:00
|
|
|
});
|
2022-09-14 11:26:01 +00:00
|
|
|
});
|