Skip to content

Commit a60f55d

Browse files
authored
Merge pull request #4 from fredj/more_tests
Add test for the line-height parameter
2 parents 107e784 + a26faa3 commit a60f55d

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)