diff options
author | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-04-05 13:53:44 -0700 |
---|---|---|
committer | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-04-05 13:53:44 -0700 |
commit | 4987beec2ba6d148d1d1e5f356f977a4daab9732 (patch) | |
tree | 1f546be48f2c513164962ae5848e72294bcb00d9 | |
parent | e414cbd6d1f9b1174123557622e03da9c56aa3dc (diff) | |
download | gitbook-4987beec2ba6d148d1d1e5f356f977a4daab9732.zip gitbook-4987beec2ba6d148d1d1e5f356f977a4daab9732.tar.gz gitbook-4987beec2ba6d148d1d1e5f356f977a4daab9732.tar.bz2 |
Add test for exercise language detection
-rw-r--r-- | test/page.js | 4 |
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'); + }); }); |