diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-19 17:25:16 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-19 17:25:16 +0100 |
commit | be4d2679a4daf885a470b5f89e8e6488b0c7a820 (patch) | |
tree | 4fb8929a39254a275ed75d7bc04786fa7338cc12 /test | |
parent | 70189a5ee2da4ae2237178e6e6630b3355857f56 (diff) | |
download | gitbook-be4d2679a4daf885a470b5f89e8e6488b0c7a820.zip gitbook-be4d2679a4daf885a470b5f89e8e6488b0c7a820.tar.gz gitbook-be4d2679a4daf885a470b5f89e8e6488b0c7a820.tar.bz2 |
Add base test for generation
Diffstat (limited to 'test')
-rw-r--r-- | test/generation.js | 9 | ||||
-rw-r--r-- | test/parsing.js | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/test/generation.js b/test/generation.js new file mode 100644 index 0000000..3a86fd5 --- /dev/null +++ b/test/generation.js @@ -0,0 +1,9 @@ +var path = require('path'); +var _ = require('lodash'); +var assert = require('assert'); + +describe('Book parsing', function () { + it('should correctly generate a book', function(done) { + qdone(book1.generate(), done); + }); +}); diff --git a/test/parsing.js b/test/parsing.js index 2c63a02..636b574 100644 --- a/test/parsing.js +++ b/test/parsing.js @@ -2,8 +2,6 @@ var path = require('path'); var _ = require('lodash'); var assert = require('assert'); -var Book = require('../').Book; - describe('Book parsing', function () { it('should correctly parse the readme', function() { assert.equal(book1.options.title, 'My Book'); |