Skip to content

Commit

Permalink
Udpate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eGavr committed Mar 9, 2015
1 parent 9de1614 commit 5af4332
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/toc/fixtures/md/bullet.md
@@ -0,0 +1,5 @@
<!-- TOC -->

# h1
## h2
### H3
10 changes: 10 additions & 0 deletions test/toc/fixtures/toc-md/bullet.md
@@ -0,0 +1,10 @@
<!-- TOC -->
* [h1](#h1)
* [h2](#h2)
* [H3](#h3)

<!-- TOC END -->

# h1
## h2
### H3
13 changes: 13 additions & 0 deletions test/toc/insert.js
Expand Up @@ -93,6 +93,19 @@ describe('TOC insert', function () {
});
});

it('must work \'bullet\' option', function (done) {
var files = readFiles('bullet');

toc.insert(files['toc-md'], { bullet: '*' }, function (err, res) {
if (err) {
done(err);
} else {
res.must.be.equal(files['toc-md']);
done();
}
});
});

it('must handle headers with \'special characters\'', function (done) {
var files = readFiles('special-characters');

Expand Down

0 comments on commit 5af4332

Please sign in to comment.