Skip to content

A platform for community discussion. Free, open, simple.

FIX: Call complete callback in moveReactionAnimation during tests (#38931)

Isaac Janzen467652d803b6
diff --git a/plugins/discourse-reactions/assets/javascripts/discourse/components/discourse-reactions-actions.gjs b/plugins/discourse-reactions/assets/javascripts/discourse/components/discourse-reactions-actions.gjs
index f7e4d7d52e5..32309c9ce13 100644
--- a/plugins/discourse-reactions/assets/javascripts/discourse/components/discourse-reactions-actions.gjs
+++ b/plugins/discourse-reactions/assets/javascripts/discourse/components/discourse-reactions-actions.gjs
@@ -57,7 +57,7 @@ function moveReactionAnimation(
complete
) {
if (isTesting()) {
- return;
+ return run(complete);
}
const fakeReaction = buildFakeReaction(reactionId);