Skip to content

Commit

Permalink
Remove .toBeArray() from String (#669)
Browse files Browse the repository at this point in the history
  • Loading branch information
greyscaled committed Oct 29, 2023
1 parent c8a3113 commit 711fdcc
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions website/docs/matchers/String.mdx
Expand Up @@ -2,18 +2,6 @@ import { TestFile } from '../../src/components/CustomSandpack';

# String

### .toBeArray()

Use `.toBeArray` when checking if a value is an `Array`.

<TestFile name="toBeArray">
{`test('passes when value is an array', () => {
expect([]).toBeArray();
expect([1]).toBeArray();
expect(true).not.toBeArray();
});`}
</TestFile>

### .toBeString()

Use `.toBeString` when checking if a value is a `String`.
Expand Down

0 comments on commit 711fdcc

Please sign in to comment.