fix spacing

This commit is contained in:
Timo Hocker
2020-04-24 12:21:26 +02:00
parent d34974addf
commit ce6e119a8d
3 changed files with 28 additions and 19 deletions

View File

@ -1,23 +1,21 @@
import test from 'ava';
import { Graph, Node } from '../lib';
const result = `subgraph cluster_bar_foo {
subgraph cluster_bar_foo_baz {
bar_foo_baz_asd
const result = `digraph foo {
subgraph cluster_foo_baz {
foo_baz_asd
}
bar_foo_baz
bar_foo_foo
foo_baz
foo_foo
bar_foo_foo -> bar_foo_baz
foo_foo -> foo_baz
}`;
test ('serialize', (t) => {
const g = new Graph ('foo', 'bar');
const g = new Graph ('foo');
t.is (g.full_name, 'bar_foo');
t.is (g.full_name, 'foo');
g.add_graph (() => {
const graph = new Graph ('baz');
graph.add_node (() => new Node ('asd'));