diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-03-02 11:22:12 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-03-02 11:22:12 +0100 |
commit | 4afcd722ae16a33d5a4f244e012086637df5ef24 (patch) | |
tree | f00f4ec01b8260aaf6d72426afe21317232381bd /test | |
parent | 21d696423068082adb79b85917719ea18562e4d2 (diff) | |
download | gitbook-4afcd722ae16a33d5a4f244e012086637df5ef24.zip gitbook-4afcd722ae16a33d5a4f244e012086637df5ef24.tar.gz gitbook-4afcd722ae16a33d5a4f244e012086637df5ef24.tar.bz2 |
Fix page description tests
Diffstat (limited to 'test')
-rw-r--r-- | test/page.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/page.js b/test/page.js index 1dd00ba..b9ad42c 100644 --- a/test/page.js +++ b/test/page.js @@ -132,12 +132,12 @@ describe('Page', function() { }); describe('Description', function() { - it('should extratc page description from content', function() { + it('should extract page description from content', function() { var page = book.addPage('description.md'); return page.toHTML(output) .then(function() { - page.description.should.equal('This is the short description.'); + page.attributes.description.should.equal('This is the short description.'); }); }); }); @@ -148,7 +148,7 @@ describe('Page', function() { return page.toHTML(output) .then(function() { - page.description.should.equal('Hello World'); + page.attributes.description.should.equal('Hello World'); }); }); |