Skip to content

Commit

Permalink
Manual cleanup of bfs-test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
curran committed Jan 2, 2021
1 parent 51c0140 commit 67b426c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions test/all_pairs_distance-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
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.all-pairs-distance');

Expand Down
4 changes: 2 additions & 2 deletions test/barycenter-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
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.barycenter');

Expand Down
14 changes: 7 additions & 7 deletions test/bfs-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.bfs');

suite.addBatch({
all_pairs_distance: {
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();
const dist = reorder.bfs_distances(graph, 0);
//console.log('Dist: %j', dist);
Expand Down

0 comments on commit 67b426c

Please sign in to comment.