Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed May 20, 2017
1 parent 0dd1798 commit 6fdc624
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions tasks/compress.js
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions tasks/lib/compress.js
Expand Up @@ -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();
};

Expand Down
24 changes: 12 additions & 12 deletions test/compress_test.js
Expand Up @@ -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();
}
};

0 comments on commit 6fdc624

Please sign in to comment.