We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c429df4 commit 83193bfCopy full SHA for 83193bf
1 file changed
test/simulation.test.ts
@@ -18,6 +18,8 @@ import { FastTracker } from "../lib/fast-tracker";
18
import { PeerContext } from "../lib/tracker";
19
import { expect } from "chai";
20
21
+// tslint:disable:no-unused-expression
22
+
23
describe("simulation", () => {
24
it("should pass random simulations", () => {
25
const simulationsCount = 1000;
@@ -98,7 +100,7 @@ describe("simulation", () => {
98
100
for (const peer of swarm.peers.values()) {
99
101
const peerData = peersData[peers.indexOf(peer)];
102
expect(peerData).to.exist;
- expect(peerData!.infoHash).to.be.equal(swarmId);
103
+ expect(peerData.infoHash).to.be.equal(swarmId);
104
}
105
106
});
0 commit comments