Skip to content

Commit a26faa3

Browse files
committed
Add test for the line-height parameter
1 parent 107e784 commit a26faa3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/index.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ describe('mapbox-to-css-font', function() {
99
should(parseFont('Noto Sans Bold', 16)).eql('normal 700 16px "Noto Sans"');
1010
should(parseFont('Noto Sans SemiBold Italic', 16)).eql('italic 600 16px "Noto Sans"');
1111
});
12+
13+
it('handle line-height', function() {
14+
should(parseFont('monospace', 16)).eql('normal 400 16px monospace');
15+
should(parseFont('monospace', 16, 3.5)).eql('normal 400 16px/3.5 monospace');
16+
should(parseFont('monospace', 16, '3em')).eql('normal 400 16px/3em monospace');
17+
});
1218
});
1319

1420
});

0 commit comments

Comments
 (0)