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
|
@ -505,32 +505,6 @@ describe('DomHandler', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('fadeIn', () => {
|
||||
it('When element is a html html, elements opactiy should be changed after timeout', () => {
|
||||
const element = document.createElement('div');
|
||||
|
||||
element.style.opacity = 0;
|
||||
DomHandler.fadeIn(element, 50);
|
||||
|
||||
setTimeout(function () {
|
||||
expect(element.style.opacity).toBe('1');
|
||||
}, 100);
|
||||
});
|
||||
});
|
||||
|
||||
describe('fadeOut', () => {
|
||||
it('When element is a html html, elements opactiy should be changed after timeout', () => {
|
||||
const el = document.createElement('div');
|
||||
|
||||
el.style.opacity = 1;
|
||||
DomHandler.fadeOut(el, 50);
|
||||
|
||||
setTimeout(() => {
|
||||
expect(el.style.opacity).toBe('0');
|
||||
}, 100);
|
||||
});
|
||||
});
|
||||
|
||||
describe('getFirstFocusableElement', () => {
|
||||
it('When element has children, function should be return first child', () => {
|
||||
const element = document.createElement('div');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue