Skip to content

fix: add missing textMsg and errorMsg mocks to help.test.js#6538

Closed
AdityaM-IITH wants to merge 1 commit intosugarlabs:masterfrom
AdityaM-IITH:fix/help-test-missing-mocks
Closed

fix: add missing textMsg and errorMsg mocks to help.test.js#6538
AdityaM-IITH wants to merge 1 commit intosugarlabs:masterfrom
AdityaM-IITH:fix/help-test-missing-mocks

Conversation

@AdityaM-IITH
Copy link
Copy Markdown
Contributor

help.test.js was failing on master. The createMockActivity function was
missing textMsg and errorMsg, causing a TypeError when the onclose handler
was triggered.

All 39 tests pass after this fix.

PR Category

  • Bug Fix
  • Performance
  • Feature
  • Tests
  • Documentation

@github-actions github-actions Bot added bug fix Fixes a bug or incorrect behavior size/XS Extra small: < 10 lines changed area/javascript Changes to JS source files area/tests Changes to test files labels Apr 10, 2026
@github-actions
Copy link
Copy Markdown
Contributor

✅ All Jest tests passed! This PR is ready to merge.

Copy link
Copy Markdown
Contributor

@mahesh-09-12 mahesh-09-12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding the missing mocks makes sense and aligns with the test setup.
Looks good to me.

@walterbender
Copy link
Copy Markdown
Member

Not sure why we need errorMsg.

textMsg was added in #6543

@Ashutoshx7
Copy link
Copy Markdown
Contributor

Not sure why we need errorMsg.

textMsg was added in #6543

this pr was raised before #6543 so i approved and added but given that is merge we can close this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/javascript Changes to JS source files area/tests Changes to test files bug fix Fixes a bug or incorrect behavior size/XS Extra small: < 10 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants