diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2014-04-05 20:06:38 -0700 |
---|---|---|
committer | Aaron O'Mullan <aaron.omullan@gmail.com> | 2014-04-05 20:06:38 -0700 |
commit | 4547ec73fda25f037bda2692dc9fc66a037cbde9 (patch) | |
tree | 85e7b33a023efc41d2a4b3acfe44ad168e2e204e /test/page.js | |
parent | 761cfb4a2c68cfcfa5557dd41ca912cb716df05b (diff) | |
parent | cae62676653e9664fd876a37b6363aecd7cfaf5a (diff) | |
download | gitbook-4547ec73fda25f037bda2692dc9fc66a037cbde9.zip gitbook-4547ec73fda25f037bda2692dc9fc66a037cbde9.tar.gz gitbook-4547ec73fda25f037bda2692dc9fc66a037cbde9.tar.bz2 |
Merge pull request #31 from GitbookIO/feature/lang
Feature/lang
Diffstat (limited to 'test/page.js')
-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..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'); + }); }); |