Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});

});