Skip to content

Commit df479a8

Browse files
author
Abir Stolov
committed
refactor: YNAB isSameTransaction tests
1 parent 008131c commit df479a8

File tree

1 file changed

+3
-5
lines changed
  • packages/main/src/backend/export/outputVendors/ynab

1 file changed

+3
-5
lines changed

packages/main/src/backend/export/outputVendors/ynab/ynab.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import * as ynab from './ynab';
66
import ClearedEnum = SaveTransaction.ClearedEnum;
77

88
describe('ynab', () => {
9-
describe('isSameTransaction(Payee changed)', () => {
9+
describe('isSameTransaction', () => {
1010
test('Two transactions with different payee names should be considered the same if they have the same import id', () => {
11-
const transferTransactionFromYnab: TransactionDetail = {
11+
const differentPayeeTransactionFromYnab: TransactionDetail = {
1212
id: '579ae642-d161-4bbe-9d54-ae3322c93cf7',
1313
date: '2019-06-27',
1414
amount: -1000000,
@@ -39,10 +39,8 @@ describe('ynab', () => {
3939
import_id: '2019-06-27-1000000שיק',
4040
};
4141

42-
expect(ynab.isSameTransaction(transactionFromFinancialAccount, transferTransactionFromYnab)).toBeTruthy();
42+
expect(ynab.isSameTransaction(transactionFromFinancialAccount, differentPayeeTransactionFromYnab)).toBeTruthy();
4343
});
44-
});
45-
describe('isSameTransaction', () => {
4644
test('Two transactions with different payee names should be considered the same if one of them is a transfer transaction', () => {
4745
const transferTransactionFromYnab: TransactionDetail = {
4846
id: '579ae642-d161-4bbe-9d54-ae3322c93cf7',

0 commit comments

Comments
 (0)