Skip to content

Commit 585ebd6

Browse files
committed
ts error fix
1 parent fda6bee commit 585ebd6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

__tests__/presentation-2-parser/upgrade.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2666,8 +2666,9 @@ describe('Presentation 2 to 3', () => {
26662666
expect(annotation?.motivation).toEqual('painting');
26672667

26682668
// Verify the body (3D model) was correctly converted
2669-
expect(annotation?.body).toBeDefined();
2670-
expect(annotation?.body?.id).toEqual('https://collections.st-andrews.ac.uk/media/406403/406403.glb');
2671-
expect(annotation?.body?.format).toEqual('model/gltf-binary');
2669+
const body = annotation?.body as any;
2670+
expect(body).toBeDefined();
2671+
expect(body?.id).toEqual('https://collections.st-andrews.ac.uk/media/406403/406403.glb');
2672+
expect(body?.format).toEqual('model/gltf-binary');
26722673
});
26732674
});

0 commit comments

Comments
 (0)