Skip to content

Commit 631e496

Browse files
committed
test: remove concat txid case
1 parent e226369 commit 631e496

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

tests/unittests/utils/files.test.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Transform } from "stream";
22
import { NextApiResponse } from "next";
33
import { valuesToCsvLine, getDataFromValues, streamToCSV, getTransform, collapseSmallPayments } from "utils/files";
4-
import { DEFAULT_MULTI_VALUES_FILE_DELIMITER, RESPONSE_MESSAGES, SupportedQuotesType } from "constants/index";
4+
import { RESPONSE_MESSAGES, SupportedQuotesType } from "constants/index";
55
import { Decimal } from "@prisma/client/runtime/library";
66
import { TransactionsWithPaybuttonsAndPrices, getTransactionValue } from "services/transactionService";
77

@@ -203,12 +203,6 @@ describe('collapseSmallPayments', () => {
203203
expect(result).toHaveLength(1);
204204
});
205205

206-
it('should collapse small payments and concatenate txIds', () => {
207-
const result = collapseSmallPayments(mockedPayments, currencyUsd, timezone, 1);
208-
const collapsedPayment = result[1]
209-
210-
expect(collapsedPayment.transactionId).toBe(mockedSmallerThen1UsdPayments.map(p => p.hash).join(DEFAULT_MULTI_VALUES_FILE_DELIMITER));
211-
});
212206

213207
it('amount should be the sum of colapsed tx amounts', () => {
214208
const result = collapseSmallPayments(mockedPayments, currencyUsd, timezone, 1);

0 commit comments

Comments
 (0)