mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-03 14:21:49 +00:00
Fixed headers when exporting visits to CSV
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user