diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-09-15 14:21:27 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-09-15 14:21:27 +0200 |
commit | 6732957e42350b3aefa4b1c80371baea92950651 (patch) | |
tree | 1605473bf22c7e4ab90a6cc9bebf5cb807fa1d90 /test/helper.js | |
parent | 5f56098ae7fae80a4dd75a944c38201560b480c6 (diff) | |
parent | 1fd00068595dfced5a0f16ac05ae2553d09608bc (diff) | |
download | gitbook-6732957e42350b3aefa4b1c80371baea92950651.zip gitbook-6732957e42350b3aefa4b1c80371baea92950651.tar.gz gitbook-6732957e42350b3aefa4b1c80371baea92950651.tar.bz2 |
Merge pull request #930 from GitbookIO/jshint
Add config for jshint and fix lint errors
Diffstat (limited to 'test/helper.js')
-rw-r--r-- | test/helper.js | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/test/helper.js b/test/helper.js index f4432a9..95619df 100644 --- a/test/helper.js +++ b/test/helper.js @@ -1,13 +1,11 @@ -var os = require('os'); -var path = require('path'); -var Q = require('q'); -var fs = require('fs'); -var _ = require('lodash'); -var should = require('should'); +var os = require("os"); +var path = require("path"); +var Q = require("q"); +var _ = require("lodash"); -var fsUtil = require('../lib/utils/fs'); -var Book = require('../').Book; -var LOG_LEVELS = require('../').LOG_LEVELS; +var fsUtil = require("../lib/utils/fs"); +var Book = require("../").Book; +var LOG_LEVELS = require("../").LOG_LEVELS; require("./assertions"); @@ -61,16 +59,14 @@ global.books = { // Cleanup all tests after(function() { return _.chain(BOOKS) - .map(function(types, bookId) { + .map(function(types) { return _.values(types); }) .flatten() .reduce(function(prev, book) { return prev.then(function() { return fsUtil.remove(book.options.output); - }) + }); }, Q()) .value(); }); - - |