Shallow render generic components
[aai/sparky-fe.git] / test / generic-components / graph / ForceDirectedGraph.test.js
diff --git a/test/generic-components/graph/ForceDirectedGraph.test.js b/test/generic-components/graph/ForceDirectedGraph.test.js
new file mode 100644 (file)
index 0000000..d73a6cc
--- /dev/null
@@ -0,0 +1,11 @@
+import React from 'react';
+import ForceDirectedGraph from 'generic-components/graph/ForceDirectedGraph.jsx';
+import {shallow} from 'enzyme';
+
+describe('ForceDirectedGraph component', () => {
+  it('should be rendered', () => {
+    const component = shallow(<ForceDirectedGraph dataOverlayButtons="Test"/>);
+
+    expect(component).toHaveLength(1);
+  });
+});