Skip to content

Commit

Permalink
linter changes
Browse files Browse the repository at this point in the history
Signed-off-by: sumukhswamy <[email protected]>
  • Loading branch information
sumukhswamy committed Jan 24, 2025
1 parent 380ea4d commit d800b85
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions server/routes/utils/__tests__/savedSearchReportHelper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -909,9 +909,7 @@ describe('test create saved search report', () => {
'geoip.location': { lon: -0.1, lat: 51.5 },
customer_birth_date: '2023-04-26T04:34:32Z',
order_date: '2023-04-26T04:34:32Z',
products: [
{ created_on: '2023-04-26T04:34:32Z' }
],
products: [{ created_on: '2023-04-26T04:34:32Z' }],
},
{
customer_birth_date: '2023-04-26T04:34:32Z',
Expand All @@ -926,9 +924,7 @@ describe('test create saved search report', () => {
'geoip.location': { lon: -74, lat: 40.8 },
customer_birth_date: '2023-04-26T04:34:32Z',
order_date: '2023-04-26T04:34:32Z',
products: [
{ created_on: '2023-04-26T04:34:32Z' }
],
products: [{ created_on: '2023-04-26T04:34:32Z' }],
},
{
customer_birth_date: '2023-04-26T04:34:32Z',
Expand All @@ -951,15 +947,12 @@ describe('test create saved search report', () => {
mockLogger,
mockTimezone
);

console.log(dataUrl, 'here');

expect(dataUrl).toEqual(
'geoip\\.country_iso_code,products\\.created_on,geoip\\.location\\.lon,geoip\\.location\\.lat,geoip\\.city_name\n' +
'GB,"[""2023-04-26T04:34:32Z""]",-0.1,51.5, \n' +
'US,"[""2023-04-26T04:34:32Z""]",-74,40.8,New York'
);
}, 20000);
'GB,"[""2023-04-26T04:34:32Z""]",-0.1,51.5, \n' +
'US,"[""2023-04-26T04:34:32Z""]",-74,40.8,New York'
);
}, 20000);

test('create report by sanitizing data set for Excel', async () => {
const hits = [
Expand Down Expand Up @@ -1363,7 +1356,7 @@ test('create report with Etc/GMT-2 Timezone', async () => {
true,
undefined,
mockLogger,
"Etc/GMT-2"
'Etc/GMT-2'
);

expect(dataUrl).toEqual(
Expand Down

0 comments on commit d800b85

Please sign in to comment.