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
|
|
|
|
2019-07-07 15:24:29 +00:00
|
|
|
interface ITestTransaction {
|
|
|
|
date: Date;
|
|
|
|
amount: number;
|
|
|
|
}
|
|
|
|
|
2021-04-16 20:28:49 +00:00
|
|
|
tap.test('implement test csv parser', async () => {
|
2019-07-07 15:24:29 +00:00
|
|
|
class MyCsvParser extends finplusInterfaces.AcCsvParser<ITestTransaction> {
|
2021-04-16 20:28:49 +00:00
|
|
|
paymentProviderName: 'bunq';
|
2019-07-07 15:24:29 +00:00
|
|
|
public transactionArray: ITestTransaction[] = [];
|
|
|
|
public async getTransactions(): Promise<ITestTransaction[]> {
|
|
|
|
return this.transactionArray;
|
|
|
|
}
|
|
|
|
}
|
2019-05-23 15:37:13 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
tap.start();
|