Skip to content

Commit 06f14d1

Browse files
dennis90simeg
authored andcommitted
Updated test to re-render after state change (needed after enzyme update)
1 parent 704c18f commit 06f14d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/tests.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ describe('Datetime', () => {
530530
utils.openDatepicker(component);
531531
expect(utils.isOpen(component)).toBeTruthy();
532532
document.dispatchEvent(new Event('mousedown'));
533+
component.update();
533534
expect(utils.isOpen(component)).toBeTruthy();
534535
});
535536

@@ -541,6 +542,7 @@ describe('Datetime', () => {
541542
utils.openDatepicker(component);
542543
expect(utils.isOpen(component)).toBeTruthy();
543544
document.dispatchEvent(new Event('mousedown'));
545+
component.update();
544546
expect(utils.isOpen(component)).toBeFalsy();
545547
});
546548

0 commit comments

Comments
 (0)