Skip to content

Commit

Permalink
Manual cleanup of graph-test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
curran committed Jan 2, 2021
1 parent e051548 commit bd7c87c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/graph-test.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
const reorder = require('../dist/reorder.cjs');

const vows = require('vows'),
assert = require('assert');
const vows = require('vows');
const assert = require('assert');

const suite = vows.describe('reorder.graph');

suite.addBatch({
graph: {
simple() {
const nodes = [{ id: 0 }, { id: 1 }, { id: 2 }],
links = [
{ source: 0, target: 1 },
{ source: 1, target: 2 },
];
const nodes = [{ id: 0 }, { id: 1 }, { id: 2 }];
const links = [
{ source: 0, target: 1 },
{ source: 1, target: 2 },
];
const graph = reorder.graph(nodes, links).init();
assert.equal(graph.nodes().length, 3);
assert.equal(graph.links().length, 2);
Expand Down

0 comments on commit bd7c87c

Please sign in to comment.