docs: fix toMatch code snippet typo (#21077)
Fixes https://github.com/microsoft/playwright/issues/21014
This commit is contained in:
parent
4efa9e5ea0
commit
1432c406ad
|
|
@ -413,7 +413,7 @@ Ensures that string value matches a regular expression.
|
|||
|
||||
```js
|
||||
const value = 'Is 42 enough?';
|
||||
expect(value).toMatches(/Is \d+ enough/);
|
||||
expect(value).toMatch(/Is \d+ enough/);
|
||||
```
|
||||
|
||||
### param: GenericAssertions.toMatch.expected
|
||||
|
|
|
|||
2
packages/playwright-test/types/test.d.ts
vendored
2
packages/playwright-test/types/test.d.ts
vendored
|
|
@ -4144,7 +4144,7 @@ interface GenericAssertions<R> {
|
|||
*
|
||||
* ```js
|
||||
* const value = 'Is 42 enough?';
|
||||
* expect(value).toMatches(/Is \d+ enough/);
|
||||
* expect(value).toMatch(/Is \d+ enough/);
|
||||
* ```
|
||||
*
|
||||
* @param expected Regular expression to match against.
|
||||
|
|
|
|||
Loading…
Reference in a new issue