From 455d0638cc715de382297423a105a9f5818b16eb Mon Sep 17 00:00:00 2001 From: Will Eastcott Date: Tue, 24 Dec 2024 10:51:35 +0000 Subject: [PATCH] Lint fix --- test/framework/components/animation/component.test.mjs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/framework/components/animation/component.test.mjs b/test/framework/components/animation/component.test.mjs index 6689212f953..5b07aac2562 100644 --- a/test/framework/components/animation/component.test.mjs +++ b/test/framework/components/animation/component.test.mjs @@ -134,12 +134,11 @@ describe('AnimationComponent', function () { it('async assets, clone of animation component loads animations', function (done) { const entity = new Entity(); - let clone; loadAssets(function () { // is currAnim public API? expect(entity.animation.currAnim).to.equal(assets.animation.name); - expect(clone.animation.currAnim).to.equal(assets.animation.name); + expect(clone.animation.currAnim).to.equal(assets.animation.name); // eslint-disable-line no-use-before-define done(); }); @@ -155,7 +154,7 @@ describe('AnimationComponent', function () { app.root.addChild(entity); - clone = entity.clone(); + const clone = entity.clone(); app.root.addChild(clone); });