File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ const test = require ( 'tape' ) ;
2
+ const csv = require ( '../src/jquery.csv.js' ) ;
3
+ const fixtures = require ( './fixtures/fixtures.js' ) ;
4
+
5
+ const setup = ( ) => {
6
+ const fixtures = require ( './fixtures/fixtures.js' ) ;
7
+ return fixtures ;
8
+ } ;
9
+
10
+ const teardown = ( fixtures ) => {
11
+ fixtures = { } ;
12
+ } ;
13
+
14
+ test ( '$.csv.toArrays() - should be able to parse multi-entry/multi-cell input' , ( t ) => {
15
+ let result = csv . toArrays ( fixtures . arrays_csv ) ;
16
+ let expect = fixtures . arrays_obj ;
17
+ t . deepEqual ( result , expect ) ;
18
+ t . end ( ) ;
19
+ } ) ;
20
+
21
+ test ( '$.csv.toArrays() - should be able to parse multi-entry/multi-cell input' , ( t ) => {
22
+ let result = csv . toArrays ( fixtures . arrays_csv ) ;
23
+ let expect = fixtures . arrays_obj ;
24
+ t . deepEqual ( result , expect ) ;
25
+ t . end ( ) ;
26
+ } ) ;
You can’t perform that action at this time.
0 commit comments