summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-03-24 23:14:17 +0100
committerSamy Pessé <samypesse@gmail.com>2015-03-24 23:14:17 +0100
commitc9af209a9335ea1219c3149eb12c2daa271c9403 (patch)
tree72df3edf7a67db465ce2dacbbf204974253b818a /lib
parent63ee94ff89d10e56d82079183c494f8129b92eae (diff)
parent48ab44a776b665b1d3627192cf82e9220ec74678 (diff)
downloadgitbook-c9af209a9335ea1219c3149eb12c2daa271c9403.zip
gitbook-c9af209a9335ea1219c3149eb12c2daa271c9403.tar.gz
gitbook-c9af209a9335ea1219c3149eb12c2daa271c9403.tar.bz2
Merge pull request #667 from GitbookIO/better-testing
Better Unit Tests
Diffstat (limited to 'lib')
-rw-r--r--lib/book.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/book.js b/lib/book.js
index a9bc40c..bdd4dfc 100644
--- a/lib/book.js
+++ b/lib/book.js
@@ -94,6 +94,11 @@ var Book = function(root, context, parent) {
_.bindAll(this);
};
+// Return string representation
+Book.prototype.toString = function() {
+ return "[Book "+this.root+"]";
+};
+
// Initialize and parse the book: config, summary, glossary
Book.prototype.parse = function() {
var that = this;