Skip to content

Commit

Permalink
test: add unit test for title font size
Browse files Browse the repository at this point in the history
  • Loading branch information
omnibrain committed Aug 21, 2023
1 parent 8b40eab commit b42891f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/svguitar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,17 @@ describe('SVGuitarChord', () => {
saveSvg('no position with position 1', container.outerHTML)
})

it('Should render a large title', () => {
svguitar
.configure({
title: 'A',
titleFontSize: 200,
})
.draw()

saveSvg('large title', container.outerHTML)
})

it('Should render a very long title nicely', () => {
svguitar
.configure({
Expand Down

0 comments on commit b42891f

Please sign in to comment.