瀏覽代碼

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

Ondřej Španěl 7 年之前
父節點
當前提交
6c3d1e9efa
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;