Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ensi321 committed Apr 19, 2024
1 parent c7dafd5 commit 0f18c5f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/ssz/test/unit/byType/listComposite/tree.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,13 @@ describe("ListCompositeType.sliceFrom", () => {
const listView = listType.toViewDU(list);

for (let i = -(listLength + 1); i < listLength + 1; i++) {
// compare list.slice(i) to listView.sliceFrom(i), they should be equivalent
// compare list.slice(i) to listView.sliceFrom(i), they should be equivalent
const slicedList = list.slice(i);
const slicedListView = listView.sliceFrom(i);

expect(slicedListView.length).to.equal(slicedList.length);
expect(toHexString(slicedListView.serialize()))
.to.equal(toHexString(listType.serialize(slicedList)));
expect(toHexString(slicedListView.hashTreeRoot()))
.to.equal(toHexString(listType.hashTreeRoot(slicedList)));
expect(toHexString(slicedListView.serialize())).to.equal(toHexString(listType.serialize(slicedList)));
expect(toHexString(slicedListView.hashTreeRoot())).to.equal(toHexString(listType.hashTreeRoot(slicedList)));
}
});
});

0 comments on commit 0f18c5f

Please sign in to comment.