20 lines
518 B
TypeScript
Raw Normal View History

2023-11-16 02:09:48 +01:00
import { expect, tap } from '@push.rocks/tapbundle';
import * as finplusInterfaces from '../ts/index.js';
2019-05-23 17:37:13 +02: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 17:37:13 +02:00
});
tap.start();