Sha256: 6c2fdf14aa8cc36f6476e2b31ee213f0a66b16afff97776c059fb684270690e8

Contents?: true

Size: 438 Bytes

Versions: 6

Compression:

Stored size: 438 Bytes

Contents

require("../env");
require("../../d3");
require("../../d3.layout");

var vows = require("vows"),
    assert = require("assert");

var suite = vows.describe("d3.layout.tree");

suite.addBatch({
  "tree": {
    topic: d3.layout.tree,
    "can handle an empty children array": function(tree) {
      assert.deepEqual(tree.nodes({children: []}), [
        {children: [], depth: 0, x: 0.5, y: 0}
      ]);
    }
  }
});

suite.export(module);

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bum-0.0.17 public/d3/test/layout/tree-test.js
bum-0.0.16 public/d3/test/layout/tree-test.js
bum-0.0.15 public/d3/test/layout/tree-test.js
bum-0.0.14 public/d3/test/layout/tree-test.js
bum-0.0.13 public/d3/test/layout/tree-test.js
bum-0.0.12 public/d3/test/layout/tree-test.js