Skip to content

Commit 821048e

Browse files
committed
Make smokescreen test resilient to 15.4 error message change
1 parent e39c44f commit 821048e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/index-test.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ describe('MaskedInput', () => {
2020
expect.spyOn(console, 'error')
2121
expect(<MaskedInput />).toExist()
2222
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-
)
23+
new RegExp('Warning: Failed prop type:')
24+
)
25+
expect(console.error.calls[0].arguments[0]).toMatch(
26+
new RegExp('`mask`')
27+
)
28+
expect(console.error.calls[0].arguments[0]).toMatch(
29+
new RegExp('required', 'i')
2730
)
2831
})
2932

0 commit comments

Comments
 (0)