feat: start rewriting data import as the import wizard

This commit is contained in:
18alantom
2023-02-02 13:42:09 +05:30
parent 5fd192174d
commit b24577f9fc
8 changed files with 904 additions and 3 deletions
+14
View File
@@ -0,0 +1,14 @@
import { ModelNameEnum } from 'models/types';
import { Importer } from 'src/importer';
import test from 'tape';
import { closeTestFyo, getTestFyo, setupTestFyo } from './helpers';
const fyo = getTestFyo();
setupTestFyo(fyo, __filename);
test('importer', async (t) => {
const importer = new Importer(ModelNameEnum.SalesInvoice, fyo);
t.ok(importer.getCSVTemplate());
});
closeTestFyo(fyo, __filename);