diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-03-24 23:14:17 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-03-24 23:14:17 +0100 |
commit | c9af209a9335ea1219c3149eb12c2daa271c9403 (patch) | |
tree | 72df3edf7a67db465ce2dacbbf204974253b818a /lib | |
parent | 63ee94ff89d10e56d82079183c494f8129b92eae (diff) | |
parent | 48ab44a776b665b1d3627192cf82e9220ec74678 (diff) | |
download | gitbook-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.js | 5 |
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; |