Skip to content

Commit 99e2028

Browse files
committed
Add bundle test
1 parent 77e4244 commit 99e2028

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/test.dist.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,15 @@ tape( 'project contains a distributable file containing Spam Assassin (minified)
102102
t.end();
103103
});
104104

105+
tape( 'project contains a distributable file containing Suthaharan\'s multi-hop sensor network data (minified)', function test( t ) {
106+
// eslint-disable-next-line stdlib/no-dynamic-require
107+
var bundle = require( join( dirpath, 'stdlib-datasets-suthaharan-multi-hop-sensor-network.min.js' ) );
108+
t.equal( typeof bundle, 'object', 'main export is an object' );
109+
t.equal( typeof bundle.SUTHAHARAN_MULTI_HOP_SENSOR_NETWORK, 'function', 'is a function' );
110+
t.equal( typeof bundle.SUTHAHARAN_MULTI_HOP_SENSOR_NETWORK(), 'object', 'returns expected value' ); // eslint-disable-line new-cap
111+
t.end();
112+
});
113+
105114
tape( 'project contains a distributable file containing Suthaharan\'s single-hop sensor network data (minified)', function test( t ) {
106115
// eslint-disable-next-line stdlib/no-dynamic-require
107116
var bundle = require( join( dirpath, 'stdlib-datasets-suthaharan-single-hop-sensor-network.min.js' ) );

0 commit comments

Comments
 (0)