Skip to content

Commit 4b57b20

Browse files
RangerMauveRangerMauve
authored andcommitted
Created test case descriptions
1 parent aa92777 commit 4b57b20

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Converts json-graph definitions into graphlib graphs.",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "mocha"
88
},
99
"repository": {
1010
"type": "git",
@@ -23,6 +23,7 @@
2323
"homepage": "https://github.com/jsongraph/graphlib-json-graph",
2424
"dependencies": {
2525
"graphlib": "^1.0.4",
26+
"mocha": "^2.2.5",
2627
"par": "^0.3.0",
2728
"prop": "^0.1.1"
2829
}

test/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
var toGraph = require("../");
2+
3+
describe("toGraph()", function() {
4+
it.skip("should be able to parse a single graph", function() {});
5+
it.skip("should be able to parse multiple graphs", function() {});
6+
it.skip("should throw an error if there are no graphs", function() {});
7+
it.skip("should support graphs without nodes", function() {});
8+
it.skip("should support graphs without edges", function() {});
9+
it.skip("should respect the directed property of a graph", function() {});
10+
it.skip("should make a graph directed if any of the edges are directed", function() {});
11+
it.skip("should be a multigraph", function() {});
12+
it.skip("should use the id for distinguishing edges between the same nodes", function() {});
13+
});

0 commit comments

Comments
 (0)