@@ -1680,7 +1680,7 @@ describe("io", () => {
1680
1680
expect ( actual ) . toEqual ( expected ) ;
1681
1681
} ) ;
1682
1682
test ( "writeCSV:string:sep" , ( ) => {
1683
- const actual = df . clone ( ) . writeCSV ( { sep : "X" } ) . toString ( ) ;
1683
+ const actual = df . clone ( ) . writeCSV ( { separator : "X" } ) . toString ( ) ;
1684
1684
const expected = "fooXbar\n1X6\n2X2\n9X8\n" ;
1685
1685
expect ( actual ) . toEqual ( expected ) ;
1686
1686
} ) ;
@@ -1689,14 +1689,14 @@ describe("io", () => {
1689
1689
bar : [ "a,b,c" , "d,e,f" , "g,h,i" ] ,
1690
1690
foo : [ 1 , 2 , 3 ] ,
1691
1691
} ) ;
1692
- const actual = df . writeCSV ( { quote : "^" } ) . toString ( ) ;
1692
+ const actual = df . writeCSV ( { quoteChar : "^" } ) . toString ( ) ;
1693
1693
const expected = "bar,foo\n^a,b,c^,1.0\n^d,e,f^,2.0\n^g,h,i^,3.0\n" ;
1694
1694
expect ( actual ) . toEqual ( expected ) ;
1695
1695
} ) ;
1696
1696
test ( "writeCSV:string:header" , ( ) => {
1697
1697
const actual = df
1698
1698
. clone ( )
1699
- . writeCSV ( { sep : "X" , includeHeader : false , lineTerminator : "|" } )
1699
+ . writeCSV ( { separator : "X" , includeHeader : false , lineTerminator : "|" } )
1700
1700
. toString ( ) ;
1701
1701
const expected = "1X6|2X2|9X8|" ;
1702
1702
expect ( actual ) . toEqual ( expected ) ;
0 commit comments