Skip to content

Commit

Permalink
docs(ExpectAPI): add line about accepted iterables (#12352)
Browse files Browse the repository at this point in the history
  • Loading branch information
Biki-das committed Feb 14, 2022
1 parent f130aff commit c961be9
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,8 @@ test('the flavor list contains lime', () => {
});
```

This matcher also accepts others iterables such as strings, sets, node lists and HTML collections.

### `.toContainEqual(item)`

Use `.toContainEqual` when you want to check that an item with a specific structure and values is contained in an array. For testing the items in the array, this matcher recursively checks the equality of all fields, rather than checking for object identity.
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-25.x/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,8 @@ test('the flavor list contains lime', () => {
});
```

This matcher also accepts others iterables such as strings, sets, node lists and HTML collections.

### `.toContainEqual(item)`

Use `.toContainEqual` when you want to check that an item with a specific structure and values is contained in an array. For testing the items in the array, this matcher recursively checks the equality of all fields, rather than checking for object identity.
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-26.x/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,8 @@ test('the flavor list contains lime', () => {
});
```

This matcher also accepts others iterables such as strings, sets, node lists and HTML collections.

### `.toContainEqual(item)`

Use `.toContainEqual` when you want to check that an item with a specific structure and values is contained in an array. For testing the items in the array, this matcher recursively checks the equality of all fields, rather than checking for object identity.
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-27.0/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,8 @@ test('the flavor list contains lime', () => {
});
```

This matcher also accepts others iterables such as strings, sets, node lists and HTML collections.

### `.toContainEqual(item)`

Use `.toContainEqual` when you want to check that an item with a specific structure and values is contained in an array. For testing the items in the array, this matcher recursively checks the equality of all fields, rather than checking for object identity.
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-27.1/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,8 @@ test('the flavor list contains lime', () => {
});
```

This matcher also accepts others iterables such as strings, sets, node lists and HTML collections.

### `.toContainEqual(item)`

Use `.toContainEqual` when you want to check that an item with a specific structure and values is contained in an array. For testing the items in the array, this matcher recursively checks the equality of all fields, rather than checking for object identity.
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-27.2/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,8 @@ test('the flavor list contains lime', () => {
});
```

This matcher also accepts others iterables such as strings, sets, node lists and HTML collections.

### `.toContainEqual(item)`

Use `.toContainEqual` when you want to check that an item with a specific structure and values is contained in an array. For testing the items in the array, this matcher recursively checks the equality of all fields, rather than checking for object identity.
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-27.4/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,8 @@ test('the flavor list contains lime', () => {
});
```

This matcher also accepts others iterables such as strings, sets, node lists and HTML collections.

### `.toContainEqual(item)`

Use `.toContainEqual` when you want to check that an item with a specific structure and values is contained in an array. For testing the items in the array, this matcher recursively checks the equality of all fields, rather than checking for object identity.
Expand Down
2 changes: 2 additions & 0 deletions website/versioned_docs/version-27.5/ExpectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,8 @@ test('the flavor list contains lime', () => {
});
```

This matcher also accepts others iterables such as strings, sets, node lists and HTML collections.

### `.toContainEqual(item)`

Use `.toContainEqual` when you want to check that an item with a specific structure and values is contained in an array. For testing the items in the array, this matcher recursively checks the equality of all fields, rather than checking for object identity.
Expand Down

0 comments on commit c961be9

Please sign in to comment.