summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-02-12 18:53:00 +0100
committerSamy Pesse <samypesse@gmail.com>2016-02-12 18:53:00 +0100
commita853a51a0ba0976e8e28f368bd88717611b3c477 (patch)
tree384cb73138079a8534d216c775bab048b9014dc9
parent756694c029218510592418deb8aaf6f3b36f95c3 (diff)
downloadgitbook-a853a51a0ba0976e8e28f368bd88717611b3c477.zip
gitbook-a853a51a0ba0976e8e28f368bd88717611b3c477.tar.gz
gitbook-a853a51a0ba0976e8e28f368bd88717611b3c477.tar.bz2
Complete test for heading IDs
-rw-r--r--test/page.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/page.js b/test/page.js
index 66c06e1..5f5c311 100644
--- a/test/page.js
+++ b/test/page.js
@@ -13,12 +13,19 @@ describe('Page', function() {
});
});
- it.only('should add a default ID to headings', function() {
+ it('should add a default ID to headings', function() {
var page = book.addPage('heading.md');
return page.parse()
.then(function() {
- console.log(page.content);
+ page.content.should.be.html({
+ 'h1#hello': {
+ count: 1
+ },
+ 'h2#world': {
+ count: 1
+ }
+ });
});
});