diff options
author | Samy Pesse <samypesse@gmail.com> | 2015-05-28 14:38:21 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2015-05-28 14:38:21 +0200 |
commit | f2d3c5d2ed85d3924666a00caa8a28549d2ba292 (patch) | |
tree | 5f5171bd384dd9ce60b5270486be0097b30005fb /test/glossary.js | |
parent | ac756ddf7e17f2dd9da2694b4defd46d64c8bb99 (diff) | |
download | gitbook-f2d3c5d2ed85d3924666a00caa8a28549d2ba292.zip gitbook-f2d3c5d2ed85d3924666a00caa8a28549d2ba292.tar.gz gitbook-f2d3c5d2ed85d3924666a00caa8a28549d2ba292.tar.bz2 |
Add test for #768
Diffstat (limited to 'test/glossary.js')
-rw-r--r-- | test/glossary.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/glossary.js b/test/glossary.js index 631967e..14c3cf7 100644 --- a/test/glossary.js +++ b/test/glossary.js @@ -14,7 +14,7 @@ describe('Glossary', function () { it('should correctly list items', function() { book.should.have.property("glossary"); - book.glossary.should.have.lengthOf(2); + book.glossary.should.have.lengthOf(3); }); }); @@ -73,6 +73,15 @@ describe('Glossary', function () { } }); }); + + it('should correctly select the longest term', function() { + readme.should.be.html({ + ".page-inner a[href='GLOSSARY.html#test-long']": { + count: 1, + text: "test long" + } + }); + }); }); }); }); |