@@ -318,7 +318,7 @@ describe('not.objectContaining', () => {
318318
319319### ` expect.not.stringContaining(string) `
320320
321- ` expect.not.stringContaining(string) ` matches any received string that does not
321+ ` expect.not.stringContaining(string) ` matches the received string that does not
322322contain the exact expected string.
323323
324324It is the inverse of ` expect.stringContaining ` .
@@ -333,9 +333,9 @@ describe('not.stringContaining', () => {
333333});
334334```
335335
336- ### ` expect.not.stringMatching(regexp) `
336+ ### ` expect.not.stringMatching(string | regexp) `
337337
338- ` expect.not.stringMatching(regexp) ` matches any received string that does not
338+ ` expect.not.stringMatching(string | regexp) ` matches the received string that does not
339339match the expected regexp.
340340
341341It is the inverse of ` expect.stringMatching ` .
@@ -379,12 +379,12 @@ test('onPress gets called with the right thing', () => {
379379
380380### ` expect.stringContaining(string) `
381381
382- ` expect.stringContaining(string) ` matches any received string that contains the
382+ ` expect.stringContaining(string) ` matches the received string that contains the
383383exact expected string.
384384
385- ### ` expect.stringMatching(regexp) `
385+ ### ` expect.stringMatching(string | regexp) `
386386
387- ` expect.stringMatching(regexp) ` matches any received string that matches the
387+ ` expect.stringMatching(string | regexp) ` matches the received string that matches the
388388expected regexp.
389389
390390You can use it instead of a literal value:
0 commit comments