From 6fdc624b5916704238e243da4476e893bc9503f9 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 20 May 2017 13:49:07 +0300 Subject: [PATCH] Lint. --- tasks/compress.js | 4 ++-- tasks/lib/compress.js | 4 ++-- test/compress_test.js | 24 ++++++++++++------------ 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/tasks/compress.js b/tasks/compress.js index 0c217d4..47c2152 100644 --- a/tasks/compress.js +++ b/tasks/compress.js @@ -39,8 +39,8 @@ module.exports = function(grunt) { compress.options.mode = compress.options.mode || compress.autoDetectMode(compress.options.archive); if (compress.options.mode.match('brotli') && !iltorb) { - grunt.fail.fatal('iltorb dependency wasn\'t found; in order to use brotli, ' + - 'make sure you have a supported C++ compiler available and run `npm install` again.'); + grunt.fail.fatal('iltorb dependency wasn\'t found; in order to use brotli, ' + + 'make sure you have a supported C++ compiler available and run `npm install` again.'); } if (_.includes(['zip', 'tar', 'tgz', 'gzip', 'deflate', 'deflateRaw', 'brotli'], compress.options.mode) === false) { diff --git a/tasks/lib/compress.js b/tasks/lib/compress.js index c942163..c8c9e05 100644 --- a/tasks/lib/compress.js +++ b/tasks/lib/compress.js @@ -231,8 +231,8 @@ module.exports = function(grunt) { }); }); - grunt.log.ok('Compressed ' + chalk.cyan(files.length) + ' ' - + grunt.util.pluralize(files.length, 'file/files.')); + grunt.log.ok('Compressed ' + chalk.cyan(files.length) + ' ' + + grunt.util.pluralize(files.length, 'file/files.')); archive.finalize(); }; diff --git a/test/compress_test.js b/test/compress_test.js index d1d2e9b..0eb8e4f 100644 --- a/test/compress_test.js +++ b/test/compress_test.js @@ -236,21 +236,21 @@ exports.compress = { }, test.done); }, zipCreateEmptyArchiveOptionTrue: function(test) { - test.equals( - grunt.file.exists(path.join('tmp', 'zip_must_be_created_1.zip')), true, - 'Archive must be created if option "createEmptyArchive" is true'); - test.done(); + test.equals( + grunt.file.exists(path.join('tmp', 'zip_must_be_created_1.zip')), true, + 'Archive must be created if option "createEmptyArchive" is true'); + test.done(); }, zipCreateEmptyArchiveOptionFalse: function(test) { - test.equals( - grunt.file.exists(path.join('tmp', 'zip_should_not_be_created.zip')), false, - 'Archive must not be created if option "createEmptyArchive" is false'); - test.done(); + test.equals( + grunt.file.exists(path.join('tmp', 'zip_should_not_be_created.zip')), false, + 'Archive must not be created if option "createEmptyArchive" is false'); + test.done(); }, zipCreateEmptyArchiveOptionNotExists: function(test) { - test.equals( - grunt.file.exists(path.join('tmp', 'zip_must_be_created_2.zip')), true, - 'Archive will be created because no option "createEmptyArchive" passed'); - test.done(); + test.equals( + grunt.file.exists(path.join('tmp', 'zip_must_be_created_2.zip')), true, + 'Archive will be created because no option "createEmptyArchive" passed'); + test.done(); } };