Skip to content

Commit 2731bf8

Browse files
committed
Assert if input is type=text, not if state.type is text
1 parent d971717 commit 2731bf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ReactCodeInput.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('CodeInputField', () => {
1919
expect(wrapper.state().fields).toEqual(4);
2020
expect(CodeInputField.defaultProps.placeholder).toBeUndefined();
2121
expect(wrapper.state().value).toEqual('');
22-
expect(wrapper.state().type).toEqual('text');
22+
expect(wrapper.find('input').first().is('[type="text"]')).toEqual(true);
2323
expect(wrapper.state().input).toBeInstanceOf(Array);
2424
expect(wrapper.find('div').hasClass('react-code-input')).toBeTruthy();
2525
expect(wrapper.type()).toEqual('div');

0 commit comments

Comments
 (0)