From 4987beec2ba6d148d1d1e5f356f977a4daab9732 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Sat, 5 Apr 2014 13:53:44 -0700 Subject: [PATCH] Add test for exercise language detection --- test/page.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/page.js b/test/page.js index 68c074932..94c1d0a1a 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(/
/g).length, 2); }); + + it('should detect an exercise\'s language', function() { + assert.equal(LEXED[1].lang, 'py'); + }); });