Skip to content

Commit c7f5846

Browse files
committed
Simplify.
1 parent 886b659 commit c7f5846

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

test/layout/tree-test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ suite.addBatch({
1414
assert.deepEqual(tree.nodes({children: []}).map(layout), [
1515
{depth: 0, x: 0.5, y: 0}
1616
]);
17-
var result = tree.nodes({children: [
17+
assert.deepEqual(tree.nodes({children: [
1818
{children: []},
1919
{children: [{}]},
2020
{children: [{}]}
21-
]}).map(layout);
22-
assert.deepEqual(result, [
21+
]}).map(layout), [
2322
{depth: 0, x: .5, y: 0},
2423
{depth: 1, x: .125, y: 0.5},
2524
{depth: 1, x: .375, y: 0.5},

0 commit comments

Comments
 (0)