mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 09:20:03 +02:00
Fix specs
This commit is contained in:
@@ -15,10 +15,12 @@ describe('Sankey diagram', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('parses csv', async () => {
|
it('parses csv', async () => {
|
||||||
const fs = require('fs');
|
const fs = await import('fs');
|
||||||
const path = require('path').resolve(__dirname, './energy.csv');
|
const path = await require('path').resolve(__dirname, './energy.csv');
|
||||||
await fs.readFile(path, 'utf8', (err: Error, data: string) => {
|
await fs.readFile(path, 'utf8', (err: Error, data: string) => {
|
||||||
if (err) throw err;
|
if (err) {
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
|
||||||
const str = `sankey\\n${data}`;
|
const str = `sankey\\n${data}`;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user