portablefinance/test/test.ts

20 lines
518 B
TypeScript
Raw Normal View History

2023-11-16 01:09:48 +00:00
import { expect, tap } from '@push.rocks/tapbundle';
import * as finplusInterfaces from '../ts/index.js';
2019-05-23 15:37:13 +00:00
interface ITestTransaction {
date: Date;
amount: number;
}
2021-04-16 20:28:49 +00:00
tap.test('implement test csv parser', async () => {
class MyCsvParser extends finplusInterfaces.AcCsvParser<ITestTransaction> {
2021-04-16 20:28:49 +00:00
paymentProviderName: 'bunq';
public transactionArray: ITestTransaction[] = [];
public async getTransactions(): Promise<ITestTransaction[]> {
return this.transactionArray;
}
}
2019-05-23 15:37:13 +00:00
});
tap.start();