-
-
Notifications
You must be signed in to change notification settings - Fork 810
/
Copy pathtest.js
33 lines (23 loc) · 837 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'use strict';
// MODULES //
var tape = require( 'tape' );
var IS_BROWSER = require( '@stdlib/assert/is-browser' );
var evalpoly = require( './../lib' );
// VARIABLES //
var opts = {
'skip': IS_BROWSER
};
// TESTS //
tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof evalpoly, 'function', 'main export is a function' );
t.end();
});
tape( 'attached to the main export is a factory method for generating `evalpoly` functions', function test( t ) {
t.equal( typeof evalpoly.factory, 'function', 'exports a factory method' );
t.end();
});
tape( 'in non-browser environments, attached to the main export is a method for compiling `evalpoly` function modules', opts, function test( t ) {
t.equal( typeof evalpoly.compile, 'function', 'exports a compile method' );
t.end();
});