diff options
author | Michaƫl Zasso <mic.besace@gmail.com> | 2016-01-13 21:42:45 +0100 |
---|---|---|
committer | Roman Reiss <me@silverwind.io> | 2016-01-13 23:16:17 +0100 |
commit | d1aabd626428cec65e5f54c04d9e3446d1e4d3b7 (patch) | |
tree | 9a4d4de19204b8b50d496dd6046a897f107bcf4d /test/parallel/test-fs-open-flags.js | |
parent | ec8e0ae697d96c417bda0bbe5be9712cf5923b1f (diff) | |
download | android-node-v8-d1aabd626428cec65e5f54c04d9e3446d1e4d3b7.tar.gz android-node-v8-d1aabd626428cec65e5f54c04d9e3446d1e4d3b7.tar.bz2 android-node-v8-d1aabd626428cec65e5f54c04d9e3446d1e4d3b7.zip |
test: fix style issues after eslint update
Replace var keyword with const or let.
PR-URL: https://github.com/nodejs/io.js/pull/2286
Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'test/parallel/test-fs-open-flags.js')
-rw-r--r-- | test/parallel/test-fs-open-flags.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/parallel/test-fs-open-flags.js b/test/parallel/test-fs-open-flags.js index 667abb8176..16b3d35cae 100644 --- a/test/parallel/test-fs-open-flags.js +++ b/test/parallel/test-fs-open-flags.js @@ -29,7 +29,8 @@ assert.equal(fs._stringToFlags('xa'), O_APPEND | O_CREAT | O_WRONLY | O_EXCL); assert.equal(fs._stringToFlags('ax+'), O_APPEND | O_CREAT | O_RDWR | O_EXCL); assert.equal(fs._stringToFlags('xa+'), O_APPEND | O_CREAT | O_RDWR | O_EXCL); -('+ +a +r +w rw wa war raw r++ a++ w++' + - 'x +x x+ rx rx+ wxx wax xwx xxx').split(' ').forEach(function(flags) { - assert.throws(function() { fs._stringToFlags(flags); }); -}); +('+ +a +r +w rw wa war raw r++ a++ w++ x +x x+ rx rx+ wxx wax xwx xxx') + .split(' ') + .forEach(function(flags) { + assert.throws(function() { fs._stringToFlags(flags); }); + }); |