Add test for exercise language detection

This commit is contained in:
Aaron O'Mullan
2014-04-05 13:53:44 -07:00
parent e414cbd6d1
commit 4987beec2b
+4
View File
@@ -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');
});
});