-
-
Notifications
You must be signed in to change notification settings - Fork 807
/
Copy pathtest.js
36 lines (26 loc) · 1.16 KB
/
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
34
35
36
'use strict';
// MODULES //
var tape = require( 'tape' );
var isInteger = require( './../lib' );
// TESTS //
tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.equal( typeof isInteger, 'function', 'main export is a function' );
t.end();
});
tape( 'attached to the main export is a method to test for a primitive number having an integer value', function test( t ) {
t.equal( typeof isInteger.isPrimitive, 'function', 'export is a function' );
t.end();
});
tape( 'attached to the main export is a method to test for a number object having an integer value', function test( t ) {
t.equal( typeof isInteger.isObject, 'function', 'export is a function' );
t.end();
});
tape( 'attached to the main export is a method to test for a generic number array containing only integer values', function test( t ) {
t.equal( typeof isInteger.isIntegerArray, 'function', 'export is a function' );
t.end();
});
tape( 'attached to the main export is a method to test for a primitive number array containing only integer values', function test( t ) {
t.equal( typeof isInteger.isPrimitiveIntegerArray, 'function', 'export is a function' );
t.end();
});