Skip to content

Commit da437ce

Browse files
committed
fix tests
1 parent 48348bc commit da437ce

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

test/Select-test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,8 +1979,8 @@ describe('Select', () => {
19791979
clickArrowToOpen();
19801980

19811981
expect(instance,
1982-
'with event mouseDown', 'on', <div className="Select-option">Two</div>,
1983-
'with event mouseDown', 'on', <div className="Select-option">One</div>,
1982+
'with event', 'mouseDown', 'on', <div className="Select-option">Two</div>,
1983+
'with event', 'mouseDown', 'on', <div className="Select-option">One</div>,
19841984
'to contain',
19851985
<span className="Select-multi-value-wrapper">
19861986
<div><span className="Select-value-label">Two</span></div>
@@ -3798,7 +3798,7 @@ describe('Select', () => {
37983798

37993799
it('sets the haspopup and expanded to true when menu is shown', () => {
38003800
expect(instance,
3801-
'with event keyDown', ARROW_DOWN, 'on', <div className="Select-control" />,
3801+
'with event', 'keyDown', ARROW_DOWN, 'on', <div className="Select-control" />,
38023802
'to contain', <input role="combobox" aria-haspopup="true" aria-expanded="true" />);
38033803
});
38043804

@@ -3881,7 +3881,7 @@ describe('Select', () => {
38813881

38823882
it('hides the `press backspace to remove` message on blur', () => {
38833883
expect(instance,
3884-
'with event blur', 'on', <input role="combobox" />,
3884+
'with event', 'blur', 'on', <input role="combobox" />,
38853885
'not to contain',
38863886
<span className="Select-aria-only" aria-live="assertive">
38873887
Press backspace to remove label two
@@ -3901,8 +3901,8 @@ describe('Select', () => {
39013901
it('updates the active descendant after a selection', () => {
39023902

39033903
return expect(wrapper,
3904-
'with event keyDown', ARROW_DOWN, 'on', <div className="Select-control" />,
3905-
'with event keyDown', KEY_ENTER, 'on', <div className="Select-control" />,
3904+
'with event', 'keyDown', ARROW_DOWN, 'on', <div className="Select-control" />,
3905+
'with event', 'keyDown', KEY_ENTER, 'on', <div className="Select-control" />,
39063906
'queried for', <input role="combobox" />)
39073907
.then(input => {
39083908

0 commit comments

Comments
 (0)