summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/template.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/template.js b/test/template.js
index a76fe93..6eb2278 100644
--- a/test/template.js
+++ b/test/template.js
@@ -1,5 +1,4 @@
var mock = require('./mock');
-var pkg = require('../package.json');
var Output = require('../lib/output/base');
describe('Template', function() {
@@ -19,8 +18,8 @@ describe('Template', function() {
});
it('should render with variable', function() {
- return output.template.renderString('Version is {{ gitbook.version }}')
- .should.be.fulfilledWith('Version is '+pkg.version);
+ return output.template.renderString('Hello {{ world }}', { world: 'World'})
+ .should.be.fulfilledWith('Hello World');
});
});