summaryrefslogtreecommitdiffstats
path: root/test/templating.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-01-22 21:04:36 +0100
committerSamy Pessé <samypesse@gmail.com>2016-01-22 21:04:36 +0100
commit877f2e477b010f9f37a9044606f110a90f077680 (patch)
tree5cd61cf3b00ba10dc6110535ed9fdf67d8baba72 /test/templating.js
parentc8e2fc0e57d223c01a51d6ee186fc1662cd74d13 (diff)
downloadgitbook-877f2e477b010f9f37a9044606f110a90f077680.zip
gitbook-877f2e477b010f9f37a9044606f110a90f077680.tar.gz
gitbook-877f2e477b010f9f37a9044606f110a90f077680.tar.bz2
Start rewrite
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());
- });
- });
- });
-});