Skip to content

Commit ef789ee

Browse files
authored
fix: fix controlled test case (#152)
1 parent 92690f5 commit ef789ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/picker.spec.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ describe('Picker.Basic', () => {
117117
expect(wrapper.isOpen()).toBeTruthy();
118118

119119
wrapper.setProps({ open: false });
120+
wrapper.update();
120121
expect(wrapper.isOpen()).toBeFalsy();
121122
});
122123

0 commit comments

Comments
 (0)