From a26faa3dc540a14a910e793b2f1b129330c1cd37 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Fri, 22 Mar 2019 13:35:50 +0100 Subject: [PATCH] Add test for the line-height parameter --- test/index.test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/index.test.js b/test/index.test.js index f0f85cf..14d9863 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -9,6 +9,12 @@ describe('mapbox-to-css-font', function() { should(parseFont('Noto Sans Bold', 16)).eql('normal 700 16px "Noto Sans"'); should(parseFont('Noto Sans SemiBold Italic', 16)).eql('italic 600 16px "Noto Sans"'); }); + + it('handle line-height', function() { + should(parseFont('monospace', 16)).eql('normal 400 16px monospace'); + should(parseFont('monospace', 16, 3.5)).eql('normal 400 16px/3.5 monospace'); + should(parseFont('monospace', 16, '3em')).eql('normal 400 16px/3em monospace'); + }); }); });