@@ -11,7 +11,7 @@ test('gulp-documentation', function(t) {
1111
1212test ( 'gulp-documentation md' , function ( t ) {
1313 gulp . src ( path . join ( __dirname , '/fixture.js' ) )
14- . pipe ( documentation ( { format : 'md' } ) )
14+ . pipe ( documentation ( 'md' , { } , { } ) )
1515 . on ( 'data' , function ( d ) {
1616 t . equal ( d . path , 'API.md' ) ;
1717 t . end ( ) ;
@@ -20,7 +20,7 @@ test('gulp-documentation md', function(t) {
2020
2121test ( 'gulp-documentation md custom name' , function ( t ) {
2222 gulp . src ( path . join ( __dirname , '/fixture.js' ) )
23- . pipe ( documentation ( { format : 'md' , filename : 'foo.md' } ) )
23+ . pipe ( documentation ( 'md' , { filename : 'foo.md' } ) )
2424 . on ( 'data' , function ( d ) {
2525 t . equal ( d . path , 'foo.md' ) ;
2626 t . end ( ) ;
@@ -29,7 +29,7 @@ test('gulp-documentation md custom name', function(t) {
2929
3030test ( 'gulp-documentation json' , function ( t ) {
3131 gulp . src ( path . join ( __dirname , '/fixture.js' ) )
32- . pipe ( documentation ( { format : 'json' } ) )
32+ . pipe ( documentation ( 'json' ) )
3333 . on ( 'data' , function ( d ) {
3434 t . ok ( JSON . parse ( d . contents ) , 'is json' ) ;
3535 t . end ( ) ;
@@ -38,7 +38,7 @@ test('gulp-documentation json', function(t) {
3838
3939test ( 'gulp-documentation html' , function ( t ) {
4040 gulp . src ( path . join ( __dirname , '/fixture.js' ) )
41- . pipe ( documentation ( { format : 'html' } ) )
41+ . pipe ( documentation ( 'html' ) )
4242 . pipe ( concat ( function ( d ) {
4343 t . equal ( d . length , 34 ) ;
4444 t . end ( ) ;
@@ -48,7 +48,7 @@ test('gulp-documentation html', function(t) {
4848test ( 'gulp-documentation exit callback' , function ( t ) {
4949 t . plan ( 1 ) ;
5050 gulp . src ( path . join ( __dirname , '/fixture.js' ) )
51- . pipe ( documentation ( { format : 'md' } ) )
51+ . pipe ( documentation ( 'md' ) )
5252 . on ( 'end' , function ( ) { t . pass ( ) ; } )
5353 . resume ( ) ;
5454} ) ;
0 commit comments