summaryrefslogtreecommitdiffstats
path: root/test/page.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-25 14:17:31 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-25 14:17:31 +0100
commit9215edc0a08e909763bae67ce7babb46fe655a4d (patch)
tree3797f331793a76b838b8e04777472676b63d3ecc /test/page.js
parent25ae21dae35e42268be28d9efa7f8175841c7dcc (diff)
downloadgitbook-9215edc0a08e909763bae67ce7babb46fe655a4d.zip
gitbook-9215edc0a08e909763bae67ce7babb46fe655a4d.tar.gz
gitbook-9215edc0a08e909763bae67ce7babb46fe655a4d.tar.bz2
Remove option defaultPlugins and simplify loading
Diffstat (limited to 'test/page.js')
-rw-r--r--test/page.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/page.js b/test/page.js
index 37acc95..f11d55e 100644
--- a/test/page.js
+++ b/test/page.js
@@ -32,7 +32,7 @@ describe('Page', function() {
'variables/page/next.md': '{{ page.next.title }} {{ page.next.path }}',
'variables/page/dir/ltr.md': 'This is english: {{ page.dir }}',
'variables/page/dir/rtl.md': 'بسيطة {{ page.dir }}',
- 'variables/book/title.md': '{{ book.title}}',
+ 'variables/config/title.md': '{{ config.title}}',
'GLOSSARY.md': '# Glossary\n\n\n## abracadabra\n\nthis is the description'
}, [
@@ -318,8 +318,8 @@ describe('Page', function() {
.should.be.fulfilledWith('<p>Test Variables variables/page/title.md</p>\n');
});
- it('should set book.title', function() {
- var page = book.addPage('variables/book/title.md');
+ it('should set config.title', function() {
+ var page = book.addPage('variables/config/title.md');
return page.toHTML(output)
.should.be.fulfilledWith('<p>Hello World</p>\n');
});