summaryrefslogtreecommitdiffstats
path: root/test/heading.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-01-22 21:04:36 +0100
committerSamy Pessé <samypesse@gmail.com>2016-01-22 21:04:36 +0100
commit877f2e477b010f9f37a9044606f110a90f077680 (patch)
tree5cd61cf3b00ba10dc6110535ed9fdf67d8baba72 /test/heading.js
parentc8e2fc0e57d223c01a51d6ee186fc1662cd74d13 (diff)
downloadgitbook-877f2e477b010f9f37a9044606f110a90f077680.zip
gitbook-877f2e477b010f9f37a9044606f110a90f077680.tar.gz
gitbook-877f2e477b010f9f37a9044606f110a90f077680.tar.bz2
Start rewrite
Diffstat (limited to 'test/heading.js')
-rw-r--r--test/heading.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/test/heading.js b/test/heading.js
deleted file mode 100644
index f6d65c3..0000000
--- a/test/heading.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var path = require('path');
-var fs = require('fs');
-
-describe('Headings', function () {
- var book, PAGE;
-
- before(function() {
- return books.generate('headings', 'website')
- .then(function(_book) {
- book = _book;
-
- PAGE = fs.readFileSync(
- path.join(book.options.output, 'index.html'),
- { encoding: 'utf-8' }
- );
- });
- });
-
- describe('IDs', function() {
- it('should correctly generate an ID', function() {
- PAGE.should.be.html({
- 'h1#hello-world': {
- count: 1
- }
- });
- });
-
- it('should correctly accept custom ID', function() {
- PAGE.should.be.html({
- 'h2#hello-custom': {
- count: 1
- }
- });
- });
- });
-});
-