Skip to content

Commit

Permalink
Allow Jest's toMatchObject to receive an array of objects (flow-typed…
Browse files Browse the repository at this point in the history
  • Loading branch information
haines authored and gantoine committed Nov 14, 2017
1 parent cf7c3fa commit cfa05a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ type JestExpectType = {
/**
* Use .toMatchObject to check that a javascript object matches a subset of the properties of an object.
*/
toMatchObject(object: Object): void,
toMatchObject(object: Object | Array<Object>): void,
/**
* This ensures that a React component matches the most recent snapshot.
*/
Expand Down
2 changes: 1 addition & 1 deletion definitions/npm/jest_v21.x.x/flow_v0.39.x-/jest_v21.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ type JestExpectType = {
/**
* Use .toMatchObject to check that a javascript object matches a subset of the properties of an object.
*/
toMatchObject(object: Object): void,
toMatchObject(object: Object | Array<Object>): void,
/**
* This ensures that a React component matches the most recent snapshot.
*/
Expand Down

0 comments on commit cfa05a2

Please sign in to comment.