Fix specs

This commit is contained in:
Nikolay Rozhkov 2023-06-21 02:52:21 +03:00
parent 6c6efb24f4
commit 24d9f59d69

View File

@ -15,10 +15,12 @@ describe('Sankey diagram', function () {
});
it('parses csv', async () => {
const fs = require('fs');
const path = require('path').resolve(__dirname, './energy.csv');
const fs = await import('fs');
const path = await require('path').resolve(__dirname, './energy.csv');
await fs.readFile(path, 'utf8', (err: Error, data: string) => {
if (err) throw err;
if (err) {
throw err;
}
const str = `sankey\\n${data}`;