Skip to content

Update abc.js tests to achieve ~99% code coverage#5137

Merged
omsuneri merged 2 commits intosugarlabs:masterfrom
varruunnn:abc
Jan 12, 2026
Merged

Update abc.js tests to achieve ~99% code coverage#5137
omsuneri merged 2 commits intosugarlabs:masterfrom
varruunnn:abc

Conversation

@varruunnn
Copy link
Contributor

Summary
This PR refines the unit tests in js/__tests__/abc.test.js to accurately reflect the ABC notation generation logic. These improvements have resolved expectation mismatches and significantly boosted test coverage.

Key Changes

  • Tuplets & Chords: Updated test expectations to match the correct string format for chords nested within tuplets.
  • Coverage: Achieved 99.44% line coverage and 94.79% branch coverage for abc.js.

Impact
Ensures abc.js is thoroughly tested and the test suite accurately validates the internal logic for complex musical notation.

Fixes
Closes #5136
a

@github-actions
Copy link
Contributor

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

@omsuneri omsuneri merged commit eed39a2 into sugarlabs:master Jan 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve unit test coverage and accuracy for abc.js

2 participants