summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/page.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/page.js b/test/page.js
index 68c0749..94c1d0a 100644
--- a/test/page.js
+++ b/test/page.js
@@ -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');
+ });
});