Browse Source

Tests: Fixed Object3D test.

Mr.doob 4 năm trước cách đây
mục cha
commit
59d62bf0b6
1 tập tin đã thay đổi với 3 bổ sung5 xóa
  1. 3 5
      test/unit/src/core/Object3D.tests.js

+ 3 - 5
test/unit/src/core/Object3D.tests.js

@@ -297,11 +297,9 @@ export default QUnit.module( 'Core', () => {
 			obj.translateOnAxis( new Vector3( 0, 1, 0 ), 1.23 );
 			obj.translateOnAxis( new Vector3( 0, 0, 1 ), - 4.56 );
 
-			assert.propEqual( obj.position, {
-				x: 1,
-				y: 1.23,
-				z: - 4.56
-			} );
+			assert.numEqual( obj.position.x, 1, 'x is equal' );
+			assert.numEqual( obj.position.y, 1.23, 'y is equal' );
+			assert.numEqual( obj.position.z, - 4.56, 'z is equal' );
 
 		} );