Skip to content

Commit

Permalink
Revert "Add test"
Browse files Browse the repository at this point in the history
This reverts commit 9471f30.

Signed-off-by: Rupal Mahajan <[email protected]>
  • Loading branch information
rupal-bq committed Feb 21, 2024
1 parent 9471f30 commit 8938b9e
Showing 1 changed file with 0 additions and 52 deletions.
52 changes: 0 additions & 52 deletions server/routes/utils/__tests__/savedSearchReportHelper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1367,58 +1367,6 @@ test('create report with Etc/GMT-2 Timezone', async () => {
);
}, 20000);

test('create report with undefined values', async () => {
const hits = [
hit(
{
category: 'c1',
customer_gender: 'Ma',
undefined,
customer_birth_date: '2023-04-26T04:34:32Z',
products: { created_on: '2023-04-26T04:34:32Z' },
},
{
undefined,
customer_birth_date: '2023-04-26T04:34:32Z',
'products.created_on': '2023-04-26T04:34:32Z',
}
),
hit(
{
category: 'c2',
customer_gender: 'le',
order_date: ['2021-12-16T14:04:55'],
customer_birth_date: '2023-04-26T04:34:32Z',
products: { created_on: '2023-04-26T04:34:32Z' },
},
{
order_date: ['2021-12-16T14:04:55'],
customer_birth_date: '2023-04-26T04:34:32Z',
'products.created_on': '2023-04-26T04:34:32Z',
}
),
];
const client = mockOpenSearchClient(
hits,
'"category", "customer_gender"'
);
const { dataUrl } = await createSavedSearchReport(
input,
client,
mockDateFormat,
',',
true,
undefined,
mockLogger,
mockTimezone
);
expect(dataUrl).toEqual(
'category,customer_gender\n' +
'c1,Ma\n' +
'c2,le'
);
}, 20000);

test('create report with empty/one/multiple(list) date values', async () => {
const hits = [
hit(
Expand Down

0 comments on commit 8938b9e

Please sign in to comment.