summaryrefslogtreecommitdiffstats
path: root/test/sections.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-19 09:47:36 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-19 09:47:36 +0100
commitec586dd3cdf06e9567f5d3e4961022ddc3c94778 (patch)
treecc7825ab73110b4e6fbedee404427b052edffa17 /test/sections.js
parent80432161708357bdcf0e00533d9e6d327636dab6 (diff)
downloadgitbook-ec586dd3cdf06e9567f5d3e4961022ddc3c94778.zip
gitbook-ec586dd3cdf06e9567f5d3e4961022ddc3c94778.tar.gz
gitbook-ec586dd3cdf06e9567f5d3e4961022ddc3c94778.tar.bz2
Clear folder
Diffstat (limited to 'test/sections.js')
-rw-r--r--test/sections.js22
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');
- });
-});