@@ -11,7 +11,7 @@ test('gulp-documentation', function(t) {
11
11
12
12
test ( 'gulp-documentation md' , function ( t ) {
13
13
gulp . src ( path . join ( __dirname , '/fixture.js' ) )
14
- . pipe ( documentation ( { format : 'md' } ) )
14
+ . pipe ( documentation ( 'md' , { } , { } ) )
15
15
. on ( 'data' , function ( d ) {
16
16
t . equal ( d . path , 'API.md' ) ;
17
17
t . end ( ) ;
@@ -20,7 +20,7 @@ test('gulp-documentation md', function(t) {
20
20
21
21
test ( 'gulp-documentation md custom name' , function ( t ) {
22
22
gulp . src ( path . join ( __dirname , '/fixture.js' ) )
23
- . pipe ( documentation ( { format : 'md' , filename : 'foo.md' } ) )
23
+ . pipe ( documentation ( 'md' , { filename : 'foo.md' } ) )
24
24
. on ( 'data' , function ( d ) {
25
25
t . equal ( d . path , 'foo.md' ) ;
26
26
t . end ( ) ;
@@ -29,7 +29,7 @@ test('gulp-documentation md custom name', function(t) {
29
29
30
30
test ( 'gulp-documentation json' , function ( t ) {
31
31
gulp . src ( path . join ( __dirname , '/fixture.js' ) )
32
- . pipe ( documentation ( { format : 'json' } ) )
32
+ . pipe ( documentation ( 'json' ) )
33
33
. on ( 'data' , function ( d ) {
34
34
t . ok ( JSON . parse ( d . contents ) , 'is json' ) ;
35
35
t . end ( ) ;
@@ -38,7 +38,7 @@ test('gulp-documentation json', function(t) {
38
38
39
39
test ( 'gulp-documentation html' , function ( t ) {
40
40
gulp . src ( path . join ( __dirname , '/fixture.js' ) )
41
- . pipe ( documentation ( { format : 'html' } ) )
41
+ . pipe ( documentation ( 'html' ) )
42
42
. pipe ( concat ( function ( d ) {
43
43
t . equal ( d . length , 34 ) ;
44
44
t . end ( ) ;
@@ -48,7 +48,7 @@ test('gulp-documentation html', function(t) {
48
48
test ( 'gulp-documentation exit callback' , function ( t ) {
49
49
t . plan ( 1 ) ;
50
50
gulp . src ( path . join ( __dirname , '/fixture.js' ) )
51
- . pipe ( documentation ( { format : 'md' } ) )
51
+ . pipe ( documentation ( 'md' ) )
52
52
. on ( 'end' , function ( ) { t . pass ( ) ; } )
53
53
. resume ( ) ;
54
54
} ) ;
0 commit comments