Browse Source

Merge pull request #21022 from Mugen87/dev2

Test: Clean up.
Mr.doob 4 years ago
parent
commit
5705737e72
1 changed files with 3 additions and 3 deletions
  1. 3 3
      test/unit/src/core/Geometry.tests.js

+ 3 - 3
test/unit/src/core/Geometry.tests.js

@@ -4,7 +4,7 @@ import { Geometry } from '../../../../src/core/Geometry';
 import { BufferAttribute } from '../../../../src/core/BufferAttribute';
 import { BufferGeometry } from '../../../../src/core/BufferGeometry';
 import { BoxBufferGeometry } from '../../../../src/geometries/BoxBufferGeometry';
-import { DodecahedronGeometry } from '../../../../src/geometries/DodecahedronGeometry';
+import { DodecahedronBufferGeometry } from '../../../../src/geometries/DodecahedronBufferGeometry';
 import { Vector3 } from '../../../../src/math/Vector3';
 import { Matrix4 } from '../../../../src/math/Matrix4';
 import { Face3 } from '../../../../src/core/Face3';
@@ -320,7 +320,7 @@ export default QUnit.module( 'Core', () => {
 
 		QUnit.test( "computeBoundingBox", ( assert ) => {
 
-			var a = new DodecahedronGeometry();
+			var a = new Geometry().fromBufferGeometry( new DodecahedronBufferGeometry() );
 
 			a.computeBoundingBox();
 			assert.strictEqual( a.boundingBox.isEmpty(), false, "Bounding box isn't empty" );
@@ -341,7 +341,7 @@ export default QUnit.module( 'Core', () => {
 
 		QUnit.test( "computeBoundingSphere", ( assert ) => {
 
-			var a = new DodecahedronGeometry();
+			var a = new Geometry().fromBufferGeometry( new DodecahedronBufferGeometry() );
 
 			a.computeBoundingSphere();