Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Matcher: .toBeArray() #35

Closed
mattphillips opened this issue Oct 23, 2017 · 2 comments
Closed

New Matcher: .toBeArray() #35

mattphillips opened this issue Oct 23, 2017 · 2 comments

Comments

@mattphillips
Copy link
Member

Feature Request

.toBeArray()

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

test('passes when value is an array', () => {
  expect([]).toBeArray();
  expect([1]).toBeArray();
  expect(true).not.toBeArray();
});
@stofolus
Copy link
Contributor

I can work on this

@mattphillips
Copy link
Member Author

all yours @stofolus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants