Fix a conflict between #1140 and #1141 (#1142)

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:
Dandelion Mané 2019-05-17 17:11:22 +03:00 committed by GitHub
parent f046dd06a5
commit 2999d24593
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
});