diff options
author | Colton Baker <github@netrefuge.net> | 2011-10-04 18:08:18 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-10-05 18:51:06 -0700 |
commit | 87286cc7371886d9856edf424785aaa890ba05a9 (patch) | |
tree | 0a3e93be28b8ebb62d9b774919d29b2c1600fa46 /test/fixtures | |
parent | 627f379f2273341426ab3d5cb7eb4d5c148d500a (diff) | |
download | node-new-87286cc7371886d9856edf424785aaa890ba05a9.tar.gz |
Fixed a lot of jslint errors.
Fixes #1831
Diffstat (limited to 'test/fixtures')
-rw-r--r-- | test/fixtures/GH-892-request.js | 2 | ||||
-rw-r--r-- | test/fixtures/breakpoints.js | 4 | ||||
-rw-r--r-- | test/fixtures/child-process-channel.js | 2 | ||||
-rw-r--r-- | test/fixtures/node_modules/asdf.js | 2 | ||||
-rw-r--r-- | test/fixtures/node_modules/bar.js | 2 | ||||
-rw-r--r-- | test/fixtures/node_modules/baz/index.js | 2 | ||||
-rw-r--r-- | test/fixtures/node_modules/baz/node_modules/asdf.js | 2 | ||||
-rw-r--r-- | test/fixtures/node_modules/foo.js | 2 | ||||
-rw-r--r-- | test/fixtures/node_modules/node_modules/bar.js | 2 | ||||
-rw-r--r-- | test/fixtures/packages/main-index/package-main-module/index.js | 2 | ||||
-rw-r--r-- | test/fixtures/packages/main/package-main-module.js | 2 | ||||
-rw-r--r-- | test/fixtures/test-init-index/index.js | 3 | ||||
-rw-r--r-- | test/fixtures/test-init-native/fs.js | 3 |
13 files changed, 16 insertions, 14 deletions
diff --git a/test/fixtures/GH-892-request.js b/test/fixtures/GH-892-request.js index e205d05da6..a43398e984 100644 --- a/test/fixtures/GH-892-request.js +++ b/test/fixtures/GH-892-request.js @@ -38,7 +38,7 @@ var options = { var req = https.request(options, function(res) { assert.equal(200, res.statusCode); gotResponse = true; - console.error("DONE"); + console.error('DONE'); }); req.end(new Buffer(bytesExpected)); diff --git a/test/fixtures/breakpoints.js b/test/fixtures/breakpoints.js index 4ea4c129c2..c22a560676 100644 --- a/test/fixtures/breakpoints.js +++ b/test/fixtures/breakpoints.js @@ -6,10 +6,10 @@ function a(x) { while (--i != 0); debugger; return i; -}; +} function b() { return ['hello', 'world'].join(' '); -}; +} a(); a(1); b(); diff --git a/test/fixtures/child-process-channel.js b/test/fixtures/child-process-channel.js index 802d046d32..a7af584b9d 100644 --- a/test/fixtures/child-process-channel.js +++ b/test/fixtures/child-process-channel.js @@ -1,6 +1,6 @@ var assert = require('assert'); -console.log("NODE_CHANNEL_FD", process.env.NODE_CHANNEL_FD); +console.log('NODE_CHANNEL_FD', process.env.NODE_CHANNEL_FD); assert.ok(process.env.NODE_CHANNEL_FD); var fd = parseInt(process.env.NODE_CHANNEL_FD); diff --git a/test/fixtures/node_modules/asdf.js b/test/fixtures/node_modules/asdf.js index 6cf68cadb4..84b74de9d9 100644 --- a/test/fixtures/node_modules/asdf.js +++ b/test/fixtures/node_modules/asdf.js @@ -20,5 +20,5 @@ // USE OR OTHER DEALINGS IN THE SOFTWARE. console.error(__filename); -console.error(module.paths.join('\n')+'\n'); +console.error(module.paths.join('\n') + '\n'); throw new Error('Should not ever get here.'); diff --git a/test/fixtures/node_modules/bar.js b/test/fixtures/node_modules/bar.js index 8162473a06..5d00c9592e 100644 --- a/test/fixtures/node_modules/bar.js +++ b/test/fixtures/node_modules/bar.js @@ -20,4 +20,4 @@ // USE OR OTHER DEALINGS IN THE SOFTWARE. console.error(__filename); -console.error(module.paths.join('\n')+'\n'); +console.error(module.paths.join('\n') + '\n'); diff --git a/test/fixtures/node_modules/baz/index.js b/test/fixtures/node_modules/baz/index.js index 84f587f2a1..043c6d0dc0 100644 --- a/test/fixtures/node_modules/baz/index.js +++ b/test/fixtures/node_modules/baz/index.js @@ -20,7 +20,7 @@ // USE OR OTHER DEALINGS IN THE SOFTWARE. console.error(__filename); -console.error(module.paths.join('\n')+'\n'); +console.error(module.paths.join('\n') + '\n'); // this should work, and get the one that doesn't throw var assert = require('assert'); assert.equal(require('bar'), require('../bar.js')); diff --git a/test/fixtures/node_modules/baz/node_modules/asdf.js b/test/fixtures/node_modules/baz/node_modules/asdf.js index 8162473a06..5d00c9592e 100644 --- a/test/fixtures/node_modules/baz/node_modules/asdf.js +++ b/test/fixtures/node_modules/baz/node_modules/asdf.js @@ -20,4 +20,4 @@ // USE OR OTHER DEALINGS IN THE SOFTWARE. console.error(__filename); -console.error(module.paths.join('\n')+'\n'); +console.error(module.paths.join('\n') + '\n'); diff --git a/test/fixtures/node_modules/foo.js b/test/fixtures/node_modules/foo.js index c554bdd29b..5f0236de3c 100644 --- a/test/fixtures/node_modules/foo.js +++ b/test/fixtures/node_modules/foo.js @@ -20,6 +20,6 @@ // USE OR OTHER DEALINGS IN THE SOFTWARE. console.error(__filename); -console.error(module.paths.join('\n')+'\n'); +console.error(module.paths.join('\n') + '\n'); var assert = require('assert'); assert.equal(require('baz'), require('./baz/index.js')); diff --git a/test/fixtures/node_modules/node_modules/bar.js b/test/fixtures/node_modules/node_modules/bar.js index 6cf68cadb4..84b74de9d9 100644 --- a/test/fixtures/node_modules/node_modules/bar.js +++ b/test/fixtures/node_modules/node_modules/bar.js @@ -20,5 +20,5 @@ // USE OR OTHER DEALINGS IN THE SOFTWARE. console.error(__filename); -console.error(module.paths.join('\n')+'\n'); +console.error(module.paths.join('\n') + '\n'); throw new Error('Should not ever get here.'); diff --git a/test/fixtures/packages/main-index/package-main-module/index.js b/test/fixtures/packages/main-index/package-main-module/index.js index f65d3a27d3..c361a6dc8d 100644 --- a/test/fixtures/packages/main-index/package-main-module/index.js +++ b/test/fixtures/packages/main-index/package-main-module/index.js @@ -19,4 +19,4 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -exports.ok = "ok" +exports.ok = 'ok'; diff --git a/test/fixtures/packages/main/package-main-module.js b/test/fixtures/packages/main/package-main-module.js index f65d3a27d3..c361a6dc8d 100644 --- a/test/fixtures/packages/main/package-main-module.js +++ b/test/fixtures/packages/main/package-main-module.js @@ -19,4 +19,4 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -exports.ok = "ok" +exports.ok = 'ok'; diff --git a/test/fixtures/test-init-index/index.js b/test/fixtures/test-init-index/index.js index 702035d81f..31272c8995 100644 --- a/test/fixtures/test-init-index/index.js +++ b/test/fixtures/test-init-index/index.js @@ -21,4 +21,5 @@ (function() { require('util').print('Loaded successfully!'); -})();
\ No newline at end of file +})(); + diff --git a/test/fixtures/test-init-native/fs.js b/test/fixtures/test-init-native/fs.js index df106c3bc5..06392c68d1 100644 --- a/test/fixtures/test-init-native/fs.js +++ b/test/fixtures/test-init-native/fs.js @@ -24,4 +24,5 @@ if (fs.readFile) { require('util').print('fs loaded successfully'); } -})();
\ No newline at end of file +})(); + |