Skip to content

Commit

Permalink
test using csv:quoteValues
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Sep 18, 2020
1 parent 98e3db0 commit a5c2171
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ export default function ({ getService }: FtrProviderContext) {
});

it('should use formats from non-default spaces', async () => {
setSpaceConfig('non_default_space', { 'csv:separator': ';', 'dateFormat:tz': 'US/Alaska' });
setSpaceConfig('non_default_space', {
'csv:separator': ';',
'csv:quoteValues': false,
'dateFormat:tz': 'US/Alaska',
});
const path = await reportingAPI.postJobJSON(
`/s/non_default_space/api/reporting/generate/csv`,
{
Expand All @@ -71,7 +75,7 @@ export default function ({ getService }: FtrProviderContext) {
);
const csv = await getCompleted$(path).toPromise();
expect(csv).to.match(
/^"order_date";category;"customer_first_name";"customer_full_name";"total_quantity";"total_unique_products";"taxless_total_price";"taxful_total_price";currency\n"Jul 11, 2019 @ 16:00:00.000";/
/^order_date;category;customer_first_name;customer_full_name;total_quantity;total_unique_products;taxless_total_price;taxful_total_price;currency\nJul 11, 2019 @ 16:00:00.000;/
);
});

Expand Down

0 comments on commit a5c2171

Please sign in to comment.