mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-25 11:52:10 +00:00
Add test for exercise language detection
This commit is contained in:
@@ -45,6 +45,10 @@ describe('Page parsing', function() {
|
||||
// HRs inserted correctly
|
||||
assert.equal(HR_LEXED[0].content.match(/<hr>/g).length, 2);
|
||||
});
|
||||
|
||||
it('should detect an exercise\'s language', function() {
|
||||
assert.equal(LEXED[1].lang, 'py');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user