From f29762f4dd5811464684f820286f1c90a694bdff Mon Sep 17 00:00:00 2001 From: Roman Reiss Date: Tue, 19 May 2015 13:00:06 +0200 Subject: test: enable linting for tests Enable linting for the test directory. A number of changes was made so all tests conform the current rules used by lib and src directories. The only exception for tests is that unreachable (dead) code is allowed. test-fs-non-number-arguments-throw had to be excluded from the changes because of a weird issue on Windows CI. PR-URL: https://github.com/nodejs/io.js/pull/1721 Reviewed-By: Ben Noordhuis --- test/parallel/test-zlib-invalid-input.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/parallel/test-zlib-invalid-input.js') diff --git a/test/parallel/test-zlib-invalid-input.js b/test/parallel/test-zlib-invalid-input.js index 948ea22448..e1e81bacc1 100644 --- a/test/parallel/test-zlib-invalid-input.js +++ b/test/parallel/test-zlib-invalid-input.js @@ -1,3 +1,4 @@ +'use strict'; // test uncompressing invalid input var common = require('../common'), @@ -24,15 +25,15 @@ var unzips = [ zlib.Unzip(), zlib.Inflate(), zlib.InflateRaw() ]; var hadError = []; -unzips.forEach(function (uz, i) { - console.error('Error for '+uz.constructor.name); +unzips.forEach(function(uz, i) { + console.error('Error for ' + uz.constructor.name); uz.on('error', function(er) { console.error('Error event', er); hadError[i] = true; }); uz.on('end', function(er) { - throw new Error('end event should not be emitted '+uz.constructor.name); + throw new Error('end event should not be emitted ' + uz.constructor.name); }); // this will trigger error event -- cgit v1.2.1