diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-03-09 15:50:38 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-03-09 15:50:38 +0100 |
commit | c499a8a13a3059e3953727866beb7c986e46dd78 (patch) | |
tree | 173ee93cb957446855d8519335ad5dba0f7cc332 /test | |
parent | 64a6de751d0f2bd8910ce36e2e8aa4049316e2c7 (diff) | |
download | gitbook-c499a8a13a3059e3953727866beb7c986e46dd78.zip gitbook-c499a8a13a3059e3953727866beb7c986e46dd78.tar.gz gitbook-c499a8a13a3059e3953727866beb7c986e46dd78.tar.bz2 |
Add back gitbook.generator property as deprecated
Diffstat (limited to 'test')
-rw-r--r-- | test/page.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/page.js b/test/page.js index b9ad42c..08239bc 100644 --- a/test/page.js +++ b/test/page.js @@ -36,6 +36,7 @@ describe('Page', function() { 'variables/page/dir/ltr.md': 'This is english: {{ page.dir }}', 'variables/page/dir/rtl.md': 'بسيطة {{ page.dir }}', 'variables/config/title.md': '{{ config.title}}', + 'variables/gitbook/generator.md': '{{ gitbook.generator }}', 'GLOSSARY.md': '# Glossary\n\n\n## abracadabra\n\nthis is the description' }, [ @@ -358,6 +359,12 @@ describe('Page', function() { .should.be.fulfilledWith('<p>Hello World</p>\n'); }); + it('should set gitbook.generator', function() { + var page = book.addPage('variables/gitbook/generator.md'); + return page.toHTML(output) + .should.be.fulfilledWith('<p>base</p>\n'); + }); + describe('page.dir', function() { it('should detect ltr', function() { var page = book.addPage('variables/page/dir/ltr.md'); |