diff --git a/docs/ExpectAPI.md b/docs/ExpectAPI.md index deae14f8edf5..0777c46c6ec6 100644 --- a/docs/ExpectAPI.md +++ b/docs/ExpectAPI.md @@ -1080,7 +1080,7 @@ If differences between properties do not help you to understand why a test fails - rewrite `expect(received).toEqual(expected)` as `expect(received.equals(expected)).toBe(true)` - rewrite `expect(received).not.toEqual(expected)` as `expect(received.equals(expected)).toBe(false)` -### `.toMatch(regexpOrString)` +### `.toMatch(regexp | string)` Use `.toMatch` to check that a string matches a regular expression. diff --git a/website/versioned_docs/version-22.x/ExpectAPI.md b/website/versioned_docs/version-22.x/ExpectAPI.md index d17dc6b954a7..c18eb7b7e886 100644 --- a/website/versioned_docs/version-22.x/ExpectAPI.md +++ b/website/versioned_docs/version-22.x/ExpectAPI.md @@ -780,7 +780,7 @@ If differences between properties do not help you to understand why a test fails - rewrite `expect(received).toEqual(expected)` as `expect(received.equals(expected)).toBe(true)` - rewrite `expect(received).not.toEqual(expected)` as `expect(received.equals(expected)).toBe(false)` -### `.toMatch(regexpOrString)` +### `.toMatch(regexp | string)` Use `.toMatch` to check that a string matches a regular expression. diff --git a/website/versioned_docs/version-23.x/ExpectAPI.md b/website/versioned_docs/version-23.x/ExpectAPI.md index d2732fc55bed..b8a1f737b34a 100644 --- a/website/versioned_docs/version-23.x/ExpectAPI.md +++ b/website/versioned_docs/version-23.x/ExpectAPI.md @@ -1044,7 +1044,7 @@ If differences between properties do not help you to understand why a test fails - rewrite `expect(received).toEqual(expected)` as `expect(received.equals(expected)).toBe(true)` - rewrite `expect(received).not.toEqual(expected)` as `expect(received.equals(expected)).toBe(false)` -### `.toMatch(regexpOrString)` +### `.toMatch(regexp | string)` Use `.toMatch` to check that a string matches a regular expression. diff --git a/website/versioned_docs/version-24.x/ExpectAPI.md b/website/versioned_docs/version-24.x/ExpectAPI.md index 9925f9e51cc9..a0db43d1cce6 100644 --- a/website/versioned_docs/version-24.x/ExpectAPI.md +++ b/website/versioned_docs/version-24.x/ExpectAPI.md @@ -1055,7 +1055,7 @@ If differences between properties do not help you to understand why a test fails - rewrite `expect(received).toEqual(expected)` as `expect(received.equals(expected)).toBe(true)` - rewrite `expect(received).not.toEqual(expected)` as `expect(received.equals(expected)).toBe(false)` -### `.toMatch(regexpOrString)` +### `.toMatch(regexp | string)` Use `.toMatch` to check that a string matches a regular expression. diff --git a/website/versioned_docs/version-25.x/ExpectAPI.md b/website/versioned_docs/version-25.x/ExpectAPI.md index f3163da25bc0..6c2a29115a23 100644 --- a/website/versioned_docs/version-25.x/ExpectAPI.md +++ b/website/versioned_docs/version-25.x/ExpectAPI.md @@ -1081,7 +1081,7 @@ If differences between properties do not help you to understand why a test fails - rewrite `expect(received).toEqual(expected)` as `expect(received.equals(expected)).toBe(true)` - rewrite `expect(received).not.toEqual(expected)` as `expect(received.equals(expected)).toBe(false)` -### `.toMatch(regexpOrString)` +### `.toMatch(regexp | string)` Use `.toMatch` to check that a string matches a regular expression. diff --git a/website/versioned_docs/version-26.2/ExpectAPI.md b/website/versioned_docs/version-26.2/ExpectAPI.md index 1dab1f082084..dd409fc0db02 100644 --- a/website/versioned_docs/version-26.2/ExpectAPI.md +++ b/website/versioned_docs/version-26.2/ExpectAPI.md @@ -1081,7 +1081,7 @@ If differences between properties do not help you to understand why a test fails - rewrite `expect(received).toEqual(expected)` as `expect(received.equals(expected)).toBe(true)` - rewrite `expect(received).not.toEqual(expected)` as `expect(received.equals(expected)).toBe(false)` -### `.toMatch(regexpOrString)` +### `.toMatch(regexp | string)` Use `.toMatch` to check that a string matches a regular expression.