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

expect(object).toBeObjectOf...(); #82

Open
JamieMason opened this issue Aug 3, 2017 · 0 comments
Open

expect(object).toBeObjectOf...(); #82

JamieMason opened this issue Aug 3, 2017 · 0 comments

Comments

@JamieMason
Copy link
Owner

Needs some more thought and discussion but, as it is quite common to create indexes of values by a given key, these could be a nice way of describing those indexes in a similar way to how we do with Arrays now.

expect(object).toBeObjectOf(any.iso8601());
expect(object).toBeObjectOfBooleans();
expect(object).toBeObjectOfNumbers();
expect(object).toBeObjectOfObjects();
expect(object).toBeObjectOfSize(number);
expect(object).toBeObjectOfStrings();
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

1 participant