summaryrefslogtreecommitdiffstats
path: root/test/page.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/page.js')
-rw-r--r--test/page.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/page.js b/test/page.js
new file mode 100644
index 0000000..9ed91bb
--- /dev/null
+++ b/test/page.js
@@ -0,0 +1,15 @@
+var fs = require('fs');
+var path = require('path');
+var assert = require('assert');
+
+var page = require('../lib/page');
+
+
+var CONTENT = fs.readFileSync(path.join(__dirname, './fixtures/PAGE.md'), 'utf8');
+var LEXED = page(CONTENT);
+
+describe('Page parsing', function() {
+ it('should detection sections', function() {
+ assert.equal(LEXED.length, 3);
+ });
+});