Update DataTable.spec.js

pull/3689/head
mertsincan 2023-02-28 11:51:50 +00:00
parent 3f119b4d6a
commit bbaf49aa99
1 changed files with 4 additions and 10 deletions

View File

@ -655,12 +655,6 @@ describe('DataTable.vue', () => {
expect(wrapper.find('.p-datatable-flex-scrollable').exists()).toBe(true);
});
it('should both scrolling', async () => {
await wrapper.setProps({ scrollable: true, scrollHeight: '100px', scrollDirection: 'both' });
expect(wrapper.find('.p-datatable-scrollable-both').exists()).toBe(true);
});
it('should have frozen rows', async () => {
await wrapper.setProps({ frozenValue: [smallData[0]], scrollable: true, scrollHeight: '100px', scrollDirection: 'both' });
@ -1404,13 +1398,13 @@ describe('DataTable.vue', () => {
// contextmenu
// responsive
it('should have stack layout', () => {
it('should have stack layout', async () => {
await wrapper.setProps({ responsiveLayout: 'stack' });
expect(wrapper.find('.p-datatable').classes()).toContain('p-datatable-responsive-stack');
});
it('should have scroll layout', async () => {
await wrapper.setProps({ responsiveLayout: 'scroll' });
it('should have scroll layout', () => {
expect(wrapper.find('.p-datatable').classes()).toContain('p-datatable-responsive-scroll');
});