primevue-mirror/components/lib/splitterpanel/SplitterPanel.spec.js

24 lines
714 B
JavaScript
Raw Normal View History

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', () => {
expect(wrapper.find('.p-splitter-panel').exists()).toBe(true);
expect(wrapper.attributes().class).toBe('p-splitter-panel flex align-items-center justify-content-center');
expect(wrapper.find('.p-splitter-panel').text()).toBe('Panel 1');
});
2022-09-14 11:26:01 +00:00
});