mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Moved global tests into separate file
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// Global tests
|
||||
const graph = graphlibDot.read('digraph {node 1}');
|
||||
|
||||
const graphs = graphlibDot.readMany('digraph { node1 }');
|
||||
|
||||
const dotStr = graphlibDot.write(graph);
|
||||
@@ -2,15 +2,8 @@ import { Graph } from "graphlib";
|
||||
import { read, readMany, write } from 'graphlib-dot';
|
||||
|
||||
// Module tests
|
||||
let graph: Graph = read('digraph {node 1}');
|
||||
const graph: Graph = read('digraph {node 1}');
|
||||
|
||||
let graphs: Graph[] = readMany('digraph { node1 }');
|
||||
const graphs: Graph[] = readMany('digraph { node1 }');
|
||||
|
||||
let dotStr: string = write(graph);
|
||||
|
||||
// Global tests
|
||||
graph = graphlibDot.read('digraph {node 1}');
|
||||
|
||||
graphs = graphlibDot.readMany('digraph { node1 }');
|
||||
|
||||
dotStr = graphlibDot.write(graph);
|
||||
const dotStr: string = write(graph);
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"graphlib-dot-tests.ts"
|
||||
"graphlib-dot-tests.ts",
|
||||
"graphlib-dot-global-tests.ts"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user