diff options
author | Roman Reiss <me@silverwind.io> | 2015-05-19 13:00:06 +0200 |
---|---|---|
committer | Roman Reiss <me@silverwind.io> | 2015-05-19 21:21:27 +0200 |
commit | f29762f4dd5811464684f820286f1c90a694bdff (patch) | |
tree | 67ba73a81c3938f41796dfa4c595f9713de59933 /test/parallel/test-fs-write.js | |
parent | 85d99830096a48b7d50cc3b0e5c3fba4172c2d02 (diff) | |
download | android-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-fs-write.js')
-rw-r--r-- | test/parallel/test-fs-write.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/parallel/test-fs-write.js b/test/parallel/test-fs-write.js index 49b4ec5316..a3d4cf83f8 100644 --- a/test/parallel/test-fs-write.js +++ b/test/parallel/test-fs-write.js @@ -1,3 +1,4 @@ +'use strict'; var common = require('../common'); var assert = require('assert'); var path = require('path'); @@ -9,7 +10,7 @@ var expected = 'ümlaut.'; var constants = require('constants'); var found, found2; -fs.open(fn, 'w', 0644, function(err, fd) { +fs.open(fn, 'w', 0o644, function(err, fd) { if (err) throw err; console.log('open done'); fs.write(fd, '', 0, 'utf8', function(err, written) { @@ -28,7 +29,7 @@ fs.open(fn, 'w', 0644, function(err, fd) { }); -fs.open(fn2, constants.O_CREAT | constants.O_WRONLY | constants.O_TRUNC, 0644, +fs.open(fn2, constants.O_CREAT | constants.O_WRONLY | constants.O_TRUNC, 0o644, function(err, fd) { if (err) throw err; console.log('open done'); |