Skip to content

Commit 449ccaf

Browse files
committed
Update and fix tests
1 parent 32eed19 commit 449ccaf

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/test.dist.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ tape( 'project contains a distributable file containing the CMU pronouncing dict
6666
t.end();
6767
});
6868

69+
tape( 'project contains a distributable file containing emoji datasets (minified)', function test( t ) {
70+
// eslint-disable-next-line stdlib/no-dynamic-require
71+
var bundle = require( join( dirpath, 'stdlib-datasets-emoji.min.js' ) );
72+
t.equal( typeof bundle, 'object', 'main export is an object' );
73+
t.equal( typeof bundle.EMOJI, 'function', 'is a function' );
74+
t.equal( typeof bundle.EMOJI(), 'object', 'returns expected value' ); // eslint-disable-line new-cap
75+
t.end();
76+
});
77+
6978
tape( 'project contains a distributable file containing images (minified)', function test( t ) {
7079
// eslint-disable-next-line stdlib/no-dynamic-require
7180
var bundle = require( join( dirpath, 'stdlib-datasets-img.min.js' ) );
@@ -143,7 +152,7 @@ tape( 'project contains a distributable file containing "flat" namespace help te
143152
var bundle = require( join( dirpath, 'stdlib-flat-help.min.js' ) );
144153
t.equal( typeof bundle, 'object', 'main export is an object' );
145154
t.equal( typeof bundle.help, 'function', 'has member' );
146-
t.equal( typeof bundle.help(), 'object', 'returns an object' );
155+
t.equal( typeof bundle.help( 'base.sin' ), 'string', 'returns a string' );
147156
t.end();
148157
});
149158

0 commit comments

Comments
 (0)