mirror of
https://github.com/frappe/books.git
synced 2024-11-10 15:50:56 +00:00
15 lines
408 B
TypeScript
15 lines
408 B
TypeScript
|
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);
|