Skip to content

Commit

Permalink
Merge pull request #4378 from aloisklink/fix/fix-broken-unit-tests
Browse files Browse the repository at this point in the history
test: fix classDiagramGrammer unit test
  • Loading branch information
knsv committed May 8, 2023
2 parents 7f9ebcf + a1e64c2 commit 8573db5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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 () {
Expand Down

0 comments on commit 8573db5

Please sign in to comment.