summaryrefslogtreecommitdiffstats
path: root/test/page.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/page.js')
-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..0f54809 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, 'python');
+ });
});