fix(core): add Base class for csv Parsers
This commit is contained in:
13
test/test.ts
13
test/test.ts
@ -1,9 +1,18 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import * as finplusInterfaces from '../ts/index';
|
||||
|
||||
interface ITestTransaction {
|
||||
date: Date;
|
||||
amount: number;
|
||||
}
|
||||
|
||||
tap.test('first test', async () => {
|
||||
let dummyCsvParser : finplusInterfaces.ICsvParser;
|
||||
dummyCsvParser;
|
||||
class MyCsvParser extends finplusInterfaces.AcCsvParser<ITestTransaction> {
|
||||
public transactionArray: ITestTransaction[] = [];
|
||||
public async getTransactions(): Promise<ITestTransaction[]> {
|
||||
return this.transactionArray;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user