Commit b528add
authored
test(dht): Equality check in
Use `toIncludeSameMembers()` instead of `toContainValues()`.
The `toIncludeSameMembers()` is better check as both arrays should match
exactly. In a previous line already check that there are equal items in
the list, i.e. the lists won't contain additional values (which would be
tolerated by `toContainValues()` but not by `toIncludeSameMembers()` )
```ts
expect(layer1Node1.getNeighborCount()).toEqual(layer0Node1.getNeighborCount())
```
This should resolve the test failure in
#3127.Mock-Layer1-Layer0.test.ts (#3129)1 parent 2caab62 commit b528add
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
0 commit comments