@@ -179,7 +179,7 @@ describe 'Option `columns`', ->
179
179
""" , columns : [" a" , " b" , " c" , " d" ], (err ) ->
180
180
assert_error err,
181
181
message : ' Invalid Record Length: columns length is 4, got 3 on line 1'
182
- code : ' CSV_RECORD_DONT_MATCH_COLUMNS_LENGTH '
182
+ code : ' CSV_RECORD_INCONSISTENT_COLUMNS '
183
183
next ()
184
184
185
185
it ' validate options column length on last line' , (next ) ->
@@ -190,7 +190,7 @@ describe 'Option `columns`', ->
190
190
""" , columns : [" a" , " b" , " c" , " d" ], (err ) ->
191
191
assert_error err,
192
192
message : ' Invalid Record Length: columns length is 4, got 3 on line 3'
193
- code : ' CSV_RECORD_DONT_MATCH_COLUMNS_LENGTH '
193
+ code : ' CSV_RECORD_INCONSISTENT_COLUMNS '
194
194
next ()
195
195
196
196
it ' context column is null when cast force the context creation' , (next ) ->
@@ -201,15 +201,15 @@ describe 'Option `columns`', ->
201
201
, (err ) ->
202
202
assert_error err,
203
203
message : ' Invalid Record Length: columns length is 1, got 2 on line 2'
204
- code : ' CSV_RECORD_DONT_MATCH_COLUMNS_LENGTH '
204
+ code : ' CSV_RECORD_INCONSISTENT_COLUMNS '
205
205
column : null
206
206
next ()
207
207
208
208
it ' context column is null when columns number inferieur to record length, fix regression #259' , (next ) ->
209
209
parse " a\n b,\n " , columns : true , (err ) ->
210
210
assert_error err,
211
211
message : ' Invalid Record Length: columns length is 1, got 2 on line 2'
212
- code : ' CSV_RECORD_DONT_MATCH_COLUMNS_LENGTH '
212
+ code : ' CSV_RECORD_INCONSISTENT_COLUMNS '
213
213
column : null
214
214
next ()
215
215
@@ -268,14 +268,14 @@ describe 'Option `columns`', ->
268
268
it ' last column value ignore when `null`' , (next ) ->
269
269
# Trigger a bug where error is try to stringify and parse an undefined
270
270
# value, conjointly triggered by a null column and a
271
- # CSV_RECORD_DONT_MATCH_COLUMNS_LENGTH error
271
+ # CSV_RECORD_INCONSISTENT_COLUMNS error
272
272
parse """
273
273
col_a,col_b,col_c
274
274
foo,bar
275
275
foo,bar,baz
276
276
"""
277
277
, columns : [' a' , ' b' , null ], (err ) ->
278
- err .code .should .eql ' CSV_RECORD_DONT_MATCH_COLUMNS_LENGTH '
278
+ err .code .should .eql ' CSV_RECORD_INCONSISTENT_COLUMNS '
279
279
next ()
280
280
281
281
describe ' function' , ->
0 commit comments