portablefinance/test/test.ts

20 lines
514 B
TypeScript
Raw Normal View History

2019-05-23 15:37:13 +00:00
import { expect, tap } from '@pushrocks/tapbundle';
import * as finplusInterfaces from '../ts/index';
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();