@@ -5,7 +5,7 @@ import { stringify } from '../lib/index.js'
5
5
6
6
describe ' API' , ->
7
7
8
- it ' 0 arg' , (next ) ->
8
+ it ' 0 arg: write input and stream output ' , (next ) ->
9
9
data = ' '
10
10
stringifier = stringify ()
11
11
stringifier .on ' readable' , ->
@@ -19,7 +19,7 @@ describe 'API', ->
19
19
stringifier .write [' value 1' ,' value 2' ]
20
20
stringifier .end ()
21
21
22
- it ' 1 arg: option; write and data using the stream API ' , (next ) ->
22
+ it ' 1 arg: option; write input and stream output ' , (next ) ->
23
23
data = ' '
24
24
generator = generate length : 2 , objectMode : true , seed : 1 , columns : 2
25
25
stringifier = stringify eof : false
@@ -37,7 +37,7 @@ describe 'API', ->
37
37
"""
38
38
next ()
39
39
40
- it ' 1 arg: data and pipe result ' , (next ) ->
40
+ it ' 1 arg: data and stream output ' , (next ) ->
41
41
data = ' '
42
42
stringifier = stringify [
43
43
[' field_1' ,' field_2' ], [' value 1' ,' value 2' ]
@@ -48,7 +48,7 @@ describe 'API', ->
48
48
data .should .eql ' field_1,field_2\n value 1,value 2\n '
49
49
next ()
50
50
51
- it ' 2 args: data, option and pipe result ' , (next ) ->
51
+ it ' 2 args: data, option and stream output ' , (next ) ->
52
52
data = ' '
53
53
stringifier = stringify [
54
54
[' field_1' ,' field_2' ], [' value 1' ,' value 2' ]
@@ -58,28 +58,3 @@ describe 'API', ->
58
58
stringifier .on ' finish' , ->
59
59
data .should .eql ' field_1,field_2\n value 1,value 2'
60
60
next ()
61
-
62
- it ' 2 args: data, callback' , (next ) ->
63
- data = ' '
64
- stringifier = stringify [
65
- [' field_1' ,' field_2' ], [' value 1' ,' value 2' ]
66
- ], (err , data ) ->
67
- data .should .eql ' field_1,field_2\n value 1,value 2\n '
68
- next ()
69
-
70
- it ' 2 args: options, callback' , (next ) ->
71
- data = ' '
72
- stringifier = stringify eof : false , (err , data ) ->
73
- data .should .eql ' field_1,field_2\n value 1,value 2'
74
- next ()
75
- stringifier .write [' field_1' ,' field_2' ]
76
- stringifier .write [' value 1' ,' value 2' ]
77
- stringifier .end ()
78
-
79
- it ' 3 args: data, options, callback' , (next ) ->
80
- data = ' '
81
- stringifier = stringify [
82
- [' field_1' ,' field_2' ], [' value 1' ,' value 2' ]
83
- ], eof : false , (err , data ) ->
84
- data .should .eql ' field_1,field_2\n value 1,value 2'
85
- next ()
0 commit comments