Update position expectation to use matchObject
This commit is contained in:
@@ -15,7 +15,7 @@ describe("createSoundEmitterMarkerMeshes", () => {
|
|||||||
expect(meshes[4].geometry).toBeInstanceOf(CylinderGeometry);
|
expect(meshes[4].geometry).toBeInstanceOf(CylinderGeometry);
|
||||||
expect(meshes.some((mesh) => mesh.geometry instanceof SphereGeometry)).toBe(false);
|
expect(meshes.some((mesh) => mesh.geometry instanceof SphereGeometry)).toBe(false);
|
||||||
|
|
||||||
expect(meshes[0].position).toEqual({
|
expect(meshes[0].position).toMatchObject({
|
||||||
x: 0,
|
x: 0,
|
||||||
y: 0,
|
y: 0,
|
||||||
z: 0
|
z: 0
|
||||||
|
|||||||
Reference in New Issue
Block a user