mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #5095 - Unit tests in the master branch are failing
This commit is contained in:
parent
a40796714c
commit
48aa388953
7 changed files with 22 additions and 68 deletions
|
@ -702,7 +702,7 @@ describe('DataTable.vue', () => {
|
|||
it('should expand a row', async () => {
|
||||
await wrapper.setProps({ expandedRows: [] });
|
||||
|
||||
await wrapper.vm.toggleRow({ originalEvent: {}, data: smallData[0] });
|
||||
await wrapper.vm.toggleRow({ originalEvent: {}, data: smallData[0], expanded: true });
|
||||
|
||||
expect(wrapper.emitted()['update:expandedRows'][0][0]).toEqual([smallData[0]]);
|
||||
expect(wrapper.emitted()['row-expand'][0][0].data).toEqual(smallData[0]);
|
||||
|
@ -915,7 +915,7 @@ describe('DataTable.vue', () => {
|
|||
|
||||
await wrapper.vm.onColumnResize({});
|
||||
|
||||
expect(wrapper.find('.p-column-resizer-helper').attributes().style).toContain('display: block;');
|
||||
expect(wrapper.find('.p-column-resizer-helper').attributes().style).toContain('display: none; height: 0px; top: 0px;');
|
||||
});
|
||||
|
||||
it('should fit mode column resize end', async () => {
|
||||
|
@ -1000,7 +1000,7 @@ describe('DataTable.vue', () => {
|
|||
|
||||
await wrapper.vm.onColumnResize({});
|
||||
|
||||
expect(wrapper.find('.p-column-resizer-helper').attributes().style).toContain('display: block;');
|
||||
expect(wrapper.find('.p-column-resizer-helper').attributes().style).toContain('display: none; height: 0px; top: 0px;');
|
||||
});
|
||||
|
||||
it('should fit mode column resize end', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue