Skip to content

Commit 0ae23cc

Browse files
Chiu PeterChiu Peter
authored andcommitted
update CrystalToolkitAnimationScene test
1 parent 5859e65 commit 0ae23cc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/crystal-toolkit/CrystalToolkitAnimationScene/CrystalToolkitAnimationScene.test.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import { mount } from 'enzyme';
22
import * as React from 'react';
33
import { CrystalToolkitAnimationScene } from './CrystalToolkitAnimationScene';
4-
import { s2 as scene } from '../scene/simple-scene';
4+
import { phonon_scene as scene } from '../scene/phonon-animation-scene';
55
import { MOUNT_NODE_CLASS, Renderer } from '../scene/constants';
66
import Scene from '../scene/Scene';
77

88
const spy = jest.spyOn(Scene.prototype, 'renderScene');
9-
const RENDERSCENE_CALLS_BY_REACT_RENDERING = 1; // goal is to reach 1 and stay there :)
9+
const RENDERSCENE_CALLS_BY_REACT_RENDERING = 3;
10+
// goal is to reach 1 and stay there :)
11+
// MHC: not share why reach 1 is the goal...
12+
// But in this test, when mount, run animate(), addToScene(), and resizeRendererToDisplaySize()
1013

1114
// When we run test, three.js is bundled differently, and we encounter again the bug
1215
// where we have 2 different instances of three

0 commit comments

Comments
 (0)