Fixed headers when exporting visits to CSV

This commit is contained in:
Alejandro Celaya
2021-03-14 18:12:10 +01:00
parent 843f646264
commit 71468379bd
5 changed files with 7 additions and 14 deletions

View File

@@ -44,9 +44,7 @@ describe('VisitsExporter', () => {
exporter.exportVisits('my_visits.csv', visits);
expect(toCSV).toHaveBeenCalledWith(visits, {
headers: 'browser,city,country,date,latitude,longitude,os,referer',
});
expect(toCSV).toHaveBeenCalledWith(visits, { headers: 'key' });
});
it('skips execution when list of visits is empty', () => {