We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e39c44f commit 821048eCopy full SHA for 821048e
tests/index-test.js
@@ -20,10 +20,13 @@ describe('MaskedInput', () => {
20
expect.spyOn(console, 'error')
21
expect(<MaskedInput />).toExist()
22
expect(console.error.calls[0].arguments[0]).toMatch(
23
- new RegExp(
24
- 'Warning: Failed prop type: Required prop ' +
25
- '`mask` was not specified in `MaskedInput`.'
26
- )
+ new RegExp('Warning: Failed prop type:')
+ )
+ expect(console.error.calls[0].arguments[0]).toMatch(
+ new RegExp('`mask`')
27
28
29
+ new RegExp('required', 'i')
30
)
31
})
32
0 commit comments