@@ -3,21 +3,24 @@ import test from 'node:test'
33import { npmHighImpact , npmTopDependents , npmTopDownloads } from 'npm-high-impact'
44
55test ( 'npmHighImpact' , function ( ) {
6- assert ( Array . isArray ( npmHighImpact ) , 'should be a list' )
7- assert (
6+ assert . ok ( Array . isArray ( npmHighImpact ) , 'should be a list' )
7+ assert . ok (
88 npmHighImpact . includes ( 'supports-color' ) ,
99 'should include pop packages'
1010 )
1111} )
1212
1313test ( 'npmTopDependents' , function ( ) {
14- assert ( Array . isArray ( npmTopDependents ) , 'should be a list' )
15- assert ( npmTopDependents . includes ( 'typescript' ) , 'should include pop packages' )
14+ assert . ok ( Array . isArray ( npmTopDependents ) , 'should be a list' )
15+ assert . ok (
16+ npmTopDependents . includes ( 'typescript' ) ,
17+ 'should include pop packages'
18+ )
1619} )
1720
1821test ( 'npmTopDownloads' , function ( ) {
19- assert ( Array . isArray ( npmTopDownloads ) , 'should be a list' )
20- assert (
22+ assert . ok ( Array . isArray ( npmTopDownloads ) , 'should be a list' )
23+ assert . ok (
2124 npmTopDownloads . includes ( 'supports-color' ) ,
2225 'should include pop packages'
2326 )
0 commit comments