Browse Source

Added test for AnimationMixer's getRoot().

Wouter Vanmontfort 5 years ago
parent
commit
2ca090e605
1 changed files with 4 additions and 2 deletions
  1. 4 2
      test/unit/src/animation/AnimationMixer.tests.js

+ 4 - 2
test/unit/src/animation/AnimationMixer.tests.js

@@ -96,9 +96,11 @@ export default QUnit.module( 'Animation', () => {
 
 		} );
 
-		QUnit.todo( "getRoot", ( assert ) => {
+		QUnit.test( "getRoot", ( assert ) => {
 
-			assert.ok( false, "everything's gonna be alright" );
+			const obj = new Object3D();
+			const animMixer = new AnimationMixer( obj );
+			assert.strictEqual( obj, animMixer.getRoot(), "Get original root object" );
 
 		} );