mirror of
https://github.com/status-im/sourcecred.git
synced 2025-02-28 12:10:30 +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);
|
||||
await e1.runPagerank();
|
||||
await e2.runPagerank();
|
||||
for (const {node, score} of e1.nodes()) {
|
||||
const otherScore = NullUtil.get(e2.node(node)).score;
|
||||
for (const {address, score} of e1.nodes()) {
|
||||
const otherScore = NullUtil.get(e2.node(address)).score;
|
||||
expect(otherScore).toBeCloseTo(score);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user