Sfoglia il codice sorgente

Fixed "ok" parameters: comma used instead of &&.

Ondřej Španěl 7 anni fa
parent
commit
6c3d1e9efa
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      test/unit/src/core/Raycaster.tests.js

+ 1 - 1
test/unit/src/core/Raycaster.tests.js

@@ -114,7 +114,7 @@ export default QUnit.module( 'Core', () => {
 				x: 0,
 				y: 0
 			}, camera );
-			assert.ok( rayDirection.x === 0, rayDirection.y === 0, rayDirection.z === - 1,
+			assert.ok( rayDirection.x === 0 && rayDirection.y === 0 && rayDirection.z === - 1,
 				"camera is looking straight to -z and so does the ray in the middle of the screen" );
 
 			var step = 0.1;