From b42891f57647a051275438bbef270b8ae7a55994 Mon Sep 17 00:00:00 2001 From: Raphael Voellmy Date: Mon, 21 Aug 2023 20:29:14 +0200 Subject: [PATCH] test: add unit test for title font size --- test/svguitar.test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/svguitar.test.ts b/test/svguitar.test.ts index dc58ab7..b597ed5 100644 --- a/test/svguitar.test.ts +++ b/test/svguitar.test.ts @@ -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({