mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 01:09:42 +02:00
Fix specs
This commit is contained in:
@@ -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}`;
|
||||
|
||||
|
Reference in New Issue
Block a user