summaryrefslogtreecommitdiffstats
path: root/lib/output/modifiers/__tests__/addHeadingId.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/output/modifiers/__tests__/addHeadingId.js')
-rw-r--r--lib/output/modifiers/__tests__/addHeadingId.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/output/modifiers/__tests__/addHeadingId.js b/lib/output/modifiers/__tests__/addHeadingId.js
deleted file mode 100644
index a3b1d81..0000000
--- a/lib/output/modifiers/__tests__/addHeadingId.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var cheerio = require('cheerio');
-var addHeadingId = require('../addHeadingId');
-
-describe('addHeadingId', function() {
- it('should add an ID if none', function() {
- var $ = cheerio.load('<h1>Hello World</h1><h2>Cool !!</h2>');
-
- return addHeadingId($)
- .then(function() {
- var html = $.html();
- expect(html).toBe('<h1 id="hello-world">Hello World</h1><h2 id="cool-">Cool !!</h2>');
- });
- });
-
- it('should not change existing IDs', function() {
- var $ = cheerio.load('<h1 id="awesome">Hello World</h1>');
-
- return addHeadingId($)
- .then(function() {
- var html = $.html();
- expect(html).toBe('<h1 id="awesome">Hello World</h1>');
- });
- });
-});
-
-