diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-02-12 18:53:00 +0100 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-02-12 18:53:00 +0100 |
commit | a853a51a0ba0976e8e28f368bd88717611b3c477 (patch) | |
tree | 384cb73138079a8534d216c775bab048b9014dc9 /test/page.js | |
parent | 756694c029218510592418deb8aaf6f3b36f95c3 (diff) | |
download | gitbook-a853a51a0ba0976e8e28f368bd88717611b3c477.zip gitbook-a853a51a0ba0976e8e28f368bd88717611b3c477.tar.gz gitbook-a853a51a0ba0976e8e28f368bd88717611b3c477.tar.bz2 |
Complete test for heading IDs
Diffstat (limited to 'test/page.js')
-rw-r--r-- | test/page.js | 11 |
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 + } + }); }); }); |