summaryrefslogtreecommitdiff
path: root/test/sequential/test-next-tick-error-spin.js
diff options
context:
space:
mode:
authorRoman Reiss <me@silverwind.io>2015-05-19 13:00:06 +0200
committerRoman Reiss <me@silverwind.io>2015-05-19 21:21:27 +0200
commitf29762f4dd5811464684f820286f1c90a694bdff (patch)
tree67ba73a81c3938f41796dfa4c595f9713de59933 /test/sequential/test-next-tick-error-spin.js
parent85d99830096a48b7d50cc3b0e5c3fba4172c2d02 (diff)
downloadandroid-node-v8-f29762f4dd5811464684f820286f1c90a694bdff.tar.gz
android-node-v8-f29762f4dd5811464684f820286f1c90a694bdff.tar.bz2
android-node-v8-f29762f4dd5811464684f820286f1c90a694bdff.zip
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 <info@bnoordhuis.nl>
Diffstat (limited to 'test/sequential/test-next-tick-error-spin.js')
-rw-r--r--test/sequential/test-next-tick-error-spin.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/sequential/test-next-tick-error-spin.js b/test/sequential/test-next-tick-error-spin.js
index a150ea7a58..7a76ab1e12 100644
--- a/test/sequential/test-next-tick-error-spin.js
+++ b/test/sequential/test-next-tick-error-spin.js
@@ -1,3 +1,4 @@
+'use strict';
var common = require('../common');
var assert = require('assert');
@@ -22,24 +23,24 @@ if (process.argv[2] !== 'child') {
// in the error handler, we trigger several MakeCallback events
d.on('error', function(e) {
- console.log('a')
- console.log('b')
- console.log('c')
- console.log('d')
- console.log('e')
+ console.log('a');
+ console.log('b');
+ console.log('c');
+ console.log('d');
+ console.log('e');
f();
});
function f() {
process.nextTick(function() {
d.run(function() {
- throw(new Error('x'));
+ throw new Error('x');
});
});
}
f();
- setTimeout(function () {
+ setTimeout(function() {
console.error('broke in!');
//process.stdout.close();
//process.stderr.close();