refactor: establish unified viewer workspaces
This commit is contained in:
@@ -4,7 +4,9 @@ import { isCad2DFile, parseCad } from '@hmwebviewer/viewer2d';
|
||||
|
||||
describe('viewer2d package interface', () => {
|
||||
it('parses the sample DXF through the public package interface', async () => {
|
||||
const file = await readFile(new URL('../public/samples/simple.dxf', import.meta.url));
|
||||
const file = await readFile(
|
||||
new URL('../apps/viewer-2d-sample/public/samples/simple.dxf', import.meta.url),
|
||||
);
|
||||
const result = await parseCad({
|
||||
name: 'simple.dxf',
|
||||
data: file.buffer.slice(file.byteOffset, file.byteOffset + file.byteLength),
|
||||
|
||||
Reference in New Issue
Block a user