From 1d72c17ff697d3713694c819e846748286b52e4e Mon Sep 17 00:00:00 2001 From: Yusef Habib Fernandez Date: Wed, 18 Dec 2024 17:00:00 +0100 Subject: [PATCH] undo change --- .../reporting/ReportingTransactionsButton.svelte | 2 +- .../reporting/ReportingTransactionsButton.spec.ts | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/frontend/src/lib/components/reporting/ReportingTransactionsButton.svelte b/frontend/src/lib/components/reporting/ReportingTransactionsButton.svelte index f281802c5c..1e83feabdb 100644 --- a/frontend/src/lib/components/reporting/ReportingTransactionsButton.svelte +++ b/frontend/src/lib/components/reporting/ReportingTransactionsButton.svelte @@ -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, diff --git a/frontend/src/tests/lib/components/reporting/ReportingTransactionsButton.spec.ts b/frontend/src/tests/lib/components/reporting/ReportingTransactionsButton.spec.ts index cf21c4f465..35686e5c83 100644 --- a/frontend/src/tests/lib/components/reporting/ReportingTransactionsButton.spec.ts +++ b/frontend/src/tests/lib/components/reporting/ReportingTransactionsButton.spec.ts @@ -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, @@ -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);