Skip to content

Commit

Permalink
toMatchObject can also match arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
dandv authored Jul 8, 2017
1 parent fc73cdd commit 114f6f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/jest/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ declare namespace jest {
toHaveProperty(propertyPath: string, value?: any): R;
/** Check that a string matches a regular expression. */
toMatch(expected: string | RegExp): R;
/** Used to check that a JavaScript object matches a subset of the properties of an objec */
toMatchObject(expected: {}): R;
/** Used to check that a JavaScript object matches a subset of the properties of an object */
toMatchObject(expected: {} | any[]): R;
/** This ensures that a value matches the most recent snapshot. Check out [the Snapshot Testing guide](http://facebook.github.io/jest/docs/snapshot-testing.html) for more information. */
toMatchSnapshot(snapshotName?: string): R;
/** Used to test that a function throws when it is called. */
Expand Down

0 comments on commit 114f6f2

Please sign in to comment.