mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Unit test fixes
This commit is contained in:
parent
f7b83553e5
commit
84b85dc77d
10 changed files with 889 additions and 1399 deletions
|
@ -66,16 +66,6 @@ describe('PanelMenu', () => {
|
|||
expect(wrapper.findAll('.p-submenu-list').length).toBe(3);
|
||||
});
|
||||
|
||||
it('should toggle', async () => {
|
||||
expect(wrapper.findAll('.p-toggleable-content')[0].attributes().style).toBe('display: none;');
|
||||
|
||||
await wrapper.vm.onHeaderClick({}, wrapper.vm.model[0]);
|
||||
|
||||
setTimeout(() => {
|
||||
expect(wrapper.findAll('.p-toggleable-content')[0].attributes().style).toBe('');
|
||||
}, 25);
|
||||
});
|
||||
|
||||
it('should update expandedKeys', async () => {
|
||||
await wrapper.setProps({ expandedKeys: { 2: true } });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue