Commit 345c5069 authored by Alejandro Celaya's avatar Alejandro Celaya Committed by Alejandro Celaya

Use Comment as column name for annotation text when exporting as CSV

parent 1cfa0973
......@@ -141,7 +141,7 @@ export class AnnotationsExporter {
'Annotation/Reply Type',
'Quote',
'User',
'Body',
'Comment',
'Tags',
'Page',
].join(',');
......
......@@ -229,7 +229,7 @@ Tags: tag_1, tag_2`,
assert.equal(
result,
`Creation Date,URL,Group,Annotation/Reply Type,Quote,User,Body,Tags,Page
`Creation Date,URL,Group,Annotation/Reply Type,Quote,User,Comment,Tags,Page
${formattedNow},http://example.com,My group,Annotation,,jane,Annotation text,"foo,bar",
${formattedNow},http://example.com,My group,Reply,"includes ""double quotes"", and commas",bill,Annotation text,"tag_1,tag_2",23
${formattedNow},http://example.com,My group,Annotation,,bill,Annotation text,,iii`,
......@@ -252,7 +252,7 @@ ${formattedNow},http://example.com,My group,Annotation,,bill,Annotation text,,ii
assert.equal(
result,
`Creation Date,URL,Group,Annotation/Reply Type,Quote,User,Body,Tags,Page
`Creation Date,URL,Group,Annotation/Reply Type,Quote,User,Comment,Tags,Page
${formattedNow},http://example.com,My group,Annotation,,John Doe,Annotation text,"tag_1,tag_2",`,
);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment