mirror of
https://github.com/status-im/sourcecred.git
synced 2025-02-28 20:20:35 +00:00
In #1140 I rename a field in PagerankGraph.ScoredNode, and in #1141 I added a new test which referenced the field. I merged them in quick succession, introducing a conflict. This PR fixes it. Test plan: `yarn test` passes.
This commit is contained in:
parent
f046dd06a5
commit
2999d24593
@ -75,8 +75,8 @@ describe("core/pagerankGraph", () => {
|
|||||||
expect(e1.equals(e2)).toBe(false);
|
expect(e1.equals(e2)).toBe(false);
|
||||||
await e1.runPagerank();
|
await e1.runPagerank();
|
||||||
await e2.runPagerank();
|
await e2.runPagerank();
|
||||||
for (const {node, score} of e1.nodes()) {
|
for (const {address, score} of e1.nodes()) {
|
||||||
const otherScore = NullUtil.get(e2.node(node)).score;
|
const otherScore = NullUtil.get(e2.node(address)).score;
|
||||||
expect(otherScore).toBeCloseTo(score);
|
expect(otherScore).toBeCloseTo(score);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user