소스 검색

Fix unit test

Gary Hsu 6 년 전
부모
커밋
adc6165b76
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      tests/unit/babylon/src/Animations/babylon.animation.tests.ts

+ 1 - 0
tests/unit/babylon/src/Animations/babylon.animation.tests.ts

@@ -42,6 +42,7 @@ describe('Babylon Animation', function() {
         it('one key', () => {
             const scene = new BABYLON.Scene(subject);
             const box = BABYLON.Mesh.CreateBox("box", 1, scene);
+            scene.createDefaultCamera();
             const animation = new BABYLON.Animation("anim", "position.x", 1, BABYLON.Animation.ANIMATIONTYPE_FLOAT);
             animation.setKeys([{ frame: 0, value: 1 }]);
             box.animations.push(animation);