mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Fix specs
This commit is contained in:
parent
6c6efb24f4
commit
24d9f59d69
@ -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}`;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user