Skip to content

Commit

Permalink
undo change
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabib committed Dec 18, 2024
1 parent d5dfce2 commit 1d72c17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
label: $i18n.reporting.timestamp,
},
];
const fileName = `icp_transactions_export_${period}_${formatDateCompact(new Date())}`;
const fileName = `icp_transactions_export_${formatDateCompact(new Date())}`;
await generateCsvFileToSave({
datasets,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe("ReportingTransactionsButton", () => {
await po.click();
await runResolvedPromises();

const expectedFileName = `icp_transactions_export_all_20231014`;
const expectedFileName = `icp_transactions_export_20231014`;
expect(spyGenerateCsvFileToSave).toHaveBeenCalledWith(
expect.objectContaining({
fileName: expectedFileName,
Expand Down Expand Up @@ -261,13 +261,6 @@ describe("ReportingTransactionsButton", () => {
await po.click();
await runResolvedPromises();

const expectedFileName = `icp_transactions_export_year-to-date_20231014`;
expect(spyGenerateCsvFileToSave).toHaveBeenCalledWith(
expect.objectContaining({
fileName: expectedFileName,
})
);

const expectation = [mockMainAccount, mockNeuron];
expect(spyQueryNeurons).toBeCalledTimes(1);
expect(spyExportDataService).toHaveBeenCalledTimes(1);
Expand Down

0 comments on commit 1d72c17

Please sign in to comment.