import test from 'tape';

import candela from '..';

test('Verify structure and content of exported library object', t => {
  t.ok(candela, 'candela exists');

  t.ok(candela.VisComponent, 'candela.VisComponent exists');

  t.ok(candela.VisComponent.VisComponent, 'candela.VisComponent.VisComponent exists');
  t.equal(typeof(candela.VisComponent.VisComponent), 'function', 'candela.VisComponent.VisComponent is a function');

  t.ok(candela.components, 'candela.components exists');

  t.ok(candela.components.Dummy, 'candela.components.Dummy exists');
  t.equal(typeof(candela.components.Dummy), 'function', 'candela.components.Dummy is a function');

  t.ok(candela.components.Histogram, 'candela.components.Histogram exists');
  t.equal(typeof(candela.components.Histogram), 'function', 'candela.components.Histogram is a function');

  t.ok(candela.components.ParallelCoordinates, 'candela.components.ParallelCoordinates exists');
  t.equal(typeof(candela.components.ParallelCoordinates), 'function', 'candela.components.ParallelCoordinates is a function');

  t.ok(candela.components.Scatter, 'candela.components.Scatter exists');
  t.equal(typeof(candela.components.Scatter), 'function', 'candela.components.Scatter is a function');

  t.ok(candela.components.ScatterMatrix, 'candela.components.ScatterMatrix exists');
  t.equal(typeof(candela.components.ScatterMatrix), 'function', 'candela.components.ScatterMatrix is a function');

  t.end();
});

@@ -310,33 +310,33 @@
   t.equal(typeof
-(
+ 
 candela.VisCompo
@@ -352,17 +352,16 @@
 omponent
-)
 , 'funct
@@ -554,33 +554,33 @@
   t.equal(typeof
-(
+ 
 candela.componen
@@ -587,17 +587,16 @@
 ts.Dummy
-)
 , 'funct
@@ -730,33 +730,33 @@
   t.equal(typeof
-(
+ 
 candela.componen
@@ -767,17 +767,16 @@
 istogram
-)
 , 'funct
@@ -934,33 +934,33 @@
   t.equal(typeof
-(
+ 
 candela.componen
@@ -981,17 +981,16 @@
 rdinates
-)
 , 'funct
@@ -1134,33 +1134,33 @@
   t.equal(typeof
-(
+ 
 candela.componen
@@ -1169,17 +1169,16 @@
 .Scatter
-)
 , 'funct
@@ -1330,17 +1330,17 @@
 l(typeof
-(
+ 
 candela.
@@ -1363,17 +1363,16 @@
 erMatrix
-)
 , 'funct

Fix style error in exports test file