Skip to content

Commit f994607

Browse files
committed
Add basic tests
1 parent b1be6f3 commit f994607

File tree

1 file changed

+22
-0
lines changed
  • lib/node_modules/@stdlib/plot/test

1 file changed

+22
-0
lines changed
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
'use strict';
2+
3+
// MODULES //
4+
5+
var tape = require( 'tape' );
6+
var Plot = require( '@stdlib/plot/ctor' );
7+
var plot = require( './../lib' );
8+
9+
10+
// TESTS //
11+
12+
tape( 'main export is a function', function test( t ) {
13+
t.ok( true, __filename );
14+
t.strictEqual( typeof plot, 'function', 'main export is a function' );
15+
t.end();
16+
});
17+
18+
tape( 'the export is an alias for a plot constructor', function test( t ) {
19+
t.strictEqual( plot, Plot, 'is alias' );
20+
t.end();
21+
});
22+

0 commit comments

Comments
 (0)