import 'package:test/test.dart'; import 'package:fintracker_api/fintracker_api.dart'; /// tests for ImportsApi void main() { final instance = FintrackerApi().getImportsApi(); group(ImportsApi, () { // Commit // // Write the file's events into the ledger and rebuild every metric. // //Future importsCommit(int importId, CommitRequest commitRequest) async test('test importsCommit', () async { // TODO }); // Create // // Upload a report, parse it and show what committing it would do. Writes no event. // //Future importsCreate(MultipartFile file, { int accountId, String parser }) async test('test importsCreate', () async { // TODO }); // Delete // // Drop an uncommitted import. A committed one stays: `raw_*` is append-only. // //Future importsDelete(int importId) async test('test importsDelete', () async { // TODO }); // Get // // The preview again — recomputed for an uncommitted import, replayed for a committed one. // //Future importsGet(int importId) async test('test importsGet', () async { // TODO }); // List // // Newest imports first, with the counters each was committed with. // //Future> importsList({ String status, int limit, int offset }) async test('test importsList', () async { // TODO }); }); }