Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
cast: test record count with columns
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Dec 3, 2018
1 parent e4bf6f4 commit 58c90c1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/option.cast.coffee
Expand Up @@ -114,6 +114,18 @@ describe 'Option `cast`', ->
] unless err
next err

it 'dont count header line', (next) ->
parse """
a,b,c
1,2,3
4,5,6
""",
columns: true
cast: (value, context) ->
value
, (err, records) ->
next err

describe 'error', ->

it 'catch error', (next) ->
Expand Down

0 comments on commit 58c90c1

Please sign in to comment.