diff options
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" + } + }); + }); }); }); }); |