diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-19 09:47:36 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-19 09:47:36 +0100 |
commit | ec586dd3cdf06e9567f5d3e4961022ddc3c94778 (patch) | |
tree | cc7825ab73110b4e6fbedee404427b052edffa17 /test/sections.js | |
parent | 80432161708357bdcf0e00533d9e6d327636dab6 (diff) | |
download | gitbook-ec586dd3cdf06e9567f5d3e4961022ddc3c94778.zip gitbook-ec586dd3cdf06e9567f5d3e4961022ddc3c94778.tar.gz gitbook-ec586dd3cdf06e9567f5d3e4961022ddc3c94778.tar.bz2 |
Clear folder
Diffstat (limited to 'test/sections.js')
-rw-r--r-- | test/sections.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/test/sections.js b/test/sections.js deleted file mode 100644 index ef4abf9..0000000 --- a/test/sections.js +++ /dev/null @@ -1,22 +0,0 @@ -var fs = require('fs'); -var path = require('path'); -var assert = require('assert'); - -var lex = require('../').parse.lex; - - -var CONTENT = fs.readFileSync(path.join(__dirname, './fixtures/SECTIONS.md'), 'utf8'); -var LEXED = lex(CONTENT); - - -describe('Section parsing', function() { - it('should correctly split sections', function() { - assert.equal(LEXED.length, 3); - }); - - it('should robustly detect exercises', function() { - assert.equal(LEXED[0].type, 'normal'); - assert.equal(LEXED[1].type, 'exercise'); - assert.equal(LEXED[2].type, 'exercise'); - }); -}); |