summaryrefslogtreecommitdiffstats
path: root/test/templating.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-26 09:41:26 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-26 09:41:26 +0100
commitd3d64f636c859f7f01a64f7774cf70bd8ccdc562 (patch)
tree4f7731f37c3a793d187b0ab1cd77680e69534c6c /test/templating.js
parent4cb9cbb5ae3aa8f9211ffa3ac5e3d34232c0ca4f (diff)
parenteef072693b17526347c37b66078a5059c71caa31 (diff)
downloadgitbook-d3d64f636c859f7f01a64f7774cf70bd8ccdc562.zip
gitbook-d3d64f636c859f7f01a64f7774cf70bd8ccdc562.tar.gz
gitbook-d3d64f636c859f7f01a64f7774cf70bd8ccdc562.tar.bz2
Merge pull request #1109 from GitbookIO/3.0.0
Version 3.0.0
Diffstat (limited to 'test/templating.js')
-rw-r--r--test/templating.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/test/templating.js b/test/templating.js
deleted file mode 100644
index f92154b..0000000
--- a/test/templating.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var pkg = require("../package.json");
-
-describe("Templating", function () {
- var book;
-
- before(function() {
- return books.parse("basic")
- .then(function(_book) {
- book = _book;
- });
- });
-
- var testTpl = function(str, args, options) {
- return book.template.renderString(str, args, options)
- .then(book.template.postProcess);
- };
-
- describe("Context", function() {
- it("should correctly have access to generator", function() {
- return testTpl("{{ gitbook.generator }}")
- .then(function(content) {
- content.should.equal("website");
- });
- });
-
- it("should correctly have access to gitbook version", function() {
- return testTpl("{{ gitbook.version }}")
- .then(function(content) {
- content.should.equal(pkg.version.toString());
- });
- });
- });
-});