2121// MODULES //
2222
2323var tape = require ( 'tape' ) ;
24+ var format = require ( '@stdlib/string/format' ) ;
2425var validate = require ( './../lib/validate.js' ) ;
2526
2627
@@ -51,7 +52,7 @@ tape( 'the function returns an error if provided an `options` argument which is
5152
5253 for ( i = 0 ; i < values . length ; i ++ ) {
5354 err = validate ( { } , values [ i ] ) ;
54- t . strictEqual ( err instanceof TypeError , true , 'returns a type error when provided ' + values [ i ] ) ;
55+ t . strictEqual ( err instanceof TypeError , true , format ( 'returns an error when provided %s' , values [ i ] ) ) ;
5556 }
5657 t . end ( ) ;
5758} ) ;
@@ -67,7 +68,7 @@ tape( 'the function returns `null` if all options are valid', function test( t )
6768 options = { } ; // TODO: add options
6869
6970 err = validate ( opts , options ) ;
70- t . strictEqual ( err , null , 'returns null ' ) ;
71+ t . strictEqual ( err , null , 'returns expected value ' ) ;
7172 t . deepEqual ( opts , options , 'sets options' ) ;
7273
7374 t . end ( ) ;
@@ -85,7 +86,7 @@ tape( 'the function will ignore unrecognized options', function test( t ) {
8586 } ;
8687
8788 err = validate ( opts , options ) ;
88- t . strictEqual ( err , null , 'returns null ' ) ;
89+ t . strictEqual ( err , null , 'returns expected value ' ) ;
8990 t . deepEqual ( opts , { } , 'ignores unrecognized options' ) ;
9091
9192 t . end ( ) ;
0 commit comments