summaryrefslogtreecommitdiff
path: root/test/parallel/test-domain-nested-throw.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/parallel/test-domain-nested-throw.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/parallel/test-domain-nested-throw.js')
-rw-r--r--test/parallel/test-domain-nested-throw.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/parallel/test-domain-nested-throw.js b/test/parallel/test-domain-nested-throw.js
index 87039bb3f9..0fba3001b5 100644
--- a/test/parallel/test-domain-nested-throw.js
+++ b/test/parallel/test-domain-nested-throw.js
@@ -1,3 +1,4 @@
+'use strict';
var common = require('../common');
var assert = require('assert');
@@ -50,7 +51,7 @@ function throw2() {
function inner(throw1, throw2) {
var domain1 = domain.createDomain();
- domain1.on('error', function (err) {
+ domain1.on('error', function(err) {
if (gotDomain1Error) {
console.error('got domain 1 twice');
process.exit(1);
@@ -60,7 +61,7 @@ function inner(throw1, throw2) {
throw2();
});
- domain1.run(function () {
+ domain1.run(function() {
throw1();
});
}
@@ -68,7 +69,7 @@ function inner(throw1, throw2) {
function outer() {
var domain2 = domain.createDomain();
- domain2.on('error', function (err) {
+ domain2.on('error', function(err) {
if (gotDomain2Error) {
console.error('got domain 2 twice');
process.exit(1);
@@ -76,7 +77,7 @@ function outer() {
gotDomain2Error = true;
});
- domain2.run(function () {
+ domain2.run(function() {
inner(throw1, throw2);
});
}