Skip to content

Commit

Permalink
test(tablecard): file download timestamp mismatch from ui
Browse files Browse the repository at this point in the history
  • Loading branch information
simson1 committed Mar 7, 2024
1 parent 8a29dc3 commit b45d2b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/components/TableCard/TableCard.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ describe('TableCard', () => {
row: {
alert: 'AHI005 Asset failure',
count: 1.2039201932,
hour: 1563877570000,
hour: '07/23/2019 05:26',
long_description: 'long description for a given event payload',
pressure: 0,
},
Expand Down Expand Up @@ -1008,7 +1008,7 @@ describe('TableCard', () => {

userEvent.click(screen.getByRole('button', { name: /download/i }));
expect(fileDownload).toHaveBeenCalledWith(
`alert,count,hour,long_description,pressure\nAHI005 Asset failure,1.2039201932,1563877570000,long description for a given event payload,0\nAHI003 process need to optimize adjust X variables,1.10329291,1563873970000,long description for a given event payload,2\n`,
`alert,count,hour,long_description,pressure\nAHI005 Asset failure,1.2039201932,07/23/2019 05:26,long description for a given event payload,0\nAHI003 process need to optimize adjust X variables,1.10329291,07/23/2019 04:26,long description for a given event payload,2\n`,
'Open Alerts.csv'
);
});
Expand Down

0 comments on commit b45d2b2

Please sign in to comment.