Skip to content

Commit

Permalink
Ensure the triangle resolution function returns the same thing
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed May 18, 2024
1 parent 5e5c19f commit 8a5dac2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/MeshBVH.serialize.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ describe( 'Serialization', () => {
const testObj = { ...bvh };
delete testObj.resolveTriangleIndex;
expect( deserializedBVH ).toMatchObject( testObj );
expect( bvh.resolveTriangleIndex( 0 ) ).toEqual( deserializedBVH.resolveTriangleIndex( 0 ) );

} );

Expand Down

0 comments on commit 8a5dac2

Please sign in to comment.