summaryrefslogtreecommitdiffstats
path: root/test/page.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/page.js')
-rw-r--r--test/page.js7
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');