portablefinance/test/test.ts
2021-04-16 20:28:49 +00:00

20 lines
514 B
TypeScript

import { expect, tap } from '@pushrocks/tapbundle';
import * as finplusInterfaces from '../ts/index';
interface ITestTransaction {
date: Date;
amount: number;
}
tap.test('implement test csv parser', async () => {
class MyCsvParser extends finplusInterfaces.AcCsvParser<ITestTransaction> {
paymentProviderName: 'bunq';
public transactionArray: ITestTransaction[] = [];
public async getTransactions(): Promise<ITestTransaction[]> {
return this.transactionArray;
}
}
});
tap.start();