Commit d50a2e7
committed
test(rhythmruler): add comprehensive unit tests for RhythmRuler widget
- Added js/widgets/rhythmruler.test.js with ~40 tests coverage:
- Constructor & initialization
- State management & undo functionality
- Note width calculation (validates layout scaling)
- Rhythm manipulation (dissect, save history)
- Playback state tracking
- Added module.exports to rhythmruler.js for Jest compatibility
- Used proper mocking pattern for window/document globals1 parent 0693ea8 commit d50a2e7
2 files changed
+534
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2846 | 2846 | | |
2847 | 2847 | | |
2848 | 2848 | | |
| 2849 | + | |
| 2850 | + | |
| 2851 | + | |
0 commit comments