Merge pull request #4378 from aloisklink/fix/fix-broken-unit-tests

test: fix classDiagramGrammer unit test
This commit is contained in:
Knut Sveidqvist
2023-05-08 09:00:49 +02:00
committed by GitHub

View File

@@ -1,10 +1,10 @@
import { readFile } from 'node:fs/promises';
import { fileURLToPath } from 'node:url';
// @ts-ignore - no types
import { LALRGenerator } from 'jison';
import path from 'path';
const getAbsolutePath = (relativePath: string) => {
return new URL(path.join(__dirname, relativePath)).pathname;
return fileURLToPath(new URL(relativePath, import.meta.url));
};
describe('class diagram grammar', function () {