Skip to content

Commit

Permalink
add transposeValue to check the correct forwarding of options to the …
Browse files Browse the repository at this point in the history
…renderer
  • Loading branch information
no-chris committed Sep 8, 2024
1 parent 5b4cd12 commit 19e6598
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/chord-mark-jsdom/tests/chordMarkJsDom.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ describe('chordMarkJsDom', () => {
'<span class="cmChordLine">' +
'<span class="cmChordLineOffset"> </span>' +
'<span class="cmBarSeparator">|</span>' +
'<span class="cmChordSymbol">C</span> ' +
'<span class="cmChordSymbol">G</span> ' +
'<span class="cmChordSymbol">D</span> ' +
'<span class="cmChordSymbol">A</span> ' +
'<span class="cmBarSeparator">|</span></span>' +
'</p>' +
'<p class="cmLine">' +
'<span class="cmLyricLine">When I find myself in times of trouble</span>' +
'</p>' +
'</div>';

expect(renderSong(parseSong(input))).toBe(output);
expect(renderSong(parseSong(input), { transposeValue: 2 })).toBe(
output
);
});
});

0 comments on commit 19e6598

Please sign in to comment.