Skip to content

Commit

Permalink
chore: use correct URL type
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonflatval-cognite committed Jul 27, 2023
1 parent d2a507f commit 57bffd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion viewer/packages/sector-loader/tests/mockSectorUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const modelIdentifier = 'some_model_identifier';

// https://blog.logrocket.com/alternatives-dirname-node-js-es-modules/
import url from 'url';
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
const __dirname = url.fileURLToPath(new url.URL('.', import.meta.url));

export function createWantedSectorMock(id: number = 1): IMock<WantedSector> {
const wantedFile = 'wanted_file.glb';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { RevealGeometryCollectionType } from '../src/types';

// https://blog.logrocket.com/alternatives-dirname-node-js-es-modules/
import url from 'url';
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
const __dirname = url.fileURLToPath(new url.URL('.', import.meta.url));

describe(GltfSectorParser.name, () => {
let parsedPrimitivesResult: { type: RevealGeometryCollectionType; geometryBuffer: THREE.BufferGeometry }[];
Expand Down

0 comments on commit 57bffd2

Please sign in to comment.