You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/03-assertions.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,7 @@ Assert that `actual` is not deeply equal to `expected`. The inverse of `.deepEqu
141
141
142
142
Assert that `actual` is like `selector`. This is a variant of `.deepEqual()`, however `selector` does not need to have the same enumerable properties as `actual` does.
143
143
144
-
Instead AVA derives a *comparable* value from `actual`, recursively based on the shape of `selector`. This value is then compared to `selector` using `.deepEqual()`.
144
+
Instead AVA derives a *comparable* value from `actual`, recursively based on the enumerable shape of `selector`. This value is then compared to `selector` using `.deepEqual()`.
145
145
146
146
Any values in `selector` that are not arrays or regular objects should be deeply equal to the corresponding values in `actual`.
147
147
@@ -165,7 +165,7 @@ t.like({
165
165
You can also use arrays, but note that any indices in `actual` that are not in `selector` are ignored:
166
166
167
167
```js
168
-
t.like([1, 2, 3], [1, 2])
168
+
t.like([1, 2, 3, 4], [1, , 3])
169
169
```
170
170
171
171
Finally, this returns a boolean indicating whether the assertion passed.
0 commit comments