diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-02-12 20:48:51 +0100 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-02-12 20:48:51 +0100 |
commit | 82f94b010f1d77957c9d1b0967dcdd5eafe73c39 (patch) | |
tree | c13607b4bbdf20eb589052dc785edb6e70d6e031 /test/mock.js | |
parent | 4555c541a8f98cb6ad4cbec2d7bf85b375dbf505 (diff) | |
download | gitbook-82f94b010f1d77957c9d1b0967dcdd5eafe73c39.zip gitbook-82f94b010f1d77957c9d1b0967dcdd5eafe73c39.tar.gz gitbook-82f94b010f1d77957c9d1b0967dcdd5eafe73c39.tar.bz2 |
Remove concept of generator, to merge it with Output
Diffstat (limited to 'test/mock.js')
-rw-r--r-- | test/mock.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/mock.js b/test/mock.js index ce7b027..127e35c 100644 --- a/test/mock.js +++ b/test/mock.js @@ -4,7 +4,6 @@ var tmp = require('tmp'); var path = require('path'); var Book = require('../').Book; -var Output = require('../lib/output'); var NodeFS = require('../lib/fs/node'); require('./assertions'); @@ -58,7 +57,7 @@ function setupDefaultBook(files, opts) { } // Output a book with a specific generator -function outputDefaultBook(generator, files, opts) { +function outputDefaultBook(Output, files, opts) { return setupDefaultBook(files, opts) .then(function(book) { // Parse the book @@ -66,7 +65,7 @@ function outputDefaultBook(generator, files, opts) { // Start generation .then(function() { - var output = new Output(book, generator); + var output = new Output(book); return output.generate() .thenResolve(output); }); |