diff options
| author | Trevor Norris <trev.norris@gmail.com> | 2014-04-14 16:35:33 -0700 |
|---|---|---|
| committer | Trevor Norris <trev.norris@gmail.com> | 2014-04-14 16:35:33 -0700 |
| commit | c7f424e44b7e61b89f91cd344599c3d1cdfb88fe (patch) | |
| tree | d9aebb1e523a882c57a5068a5470b8b0870f2634 /test | |
| parent | 940974ed039d3c9a8befe608d9c95b2ffdb457d3 (diff) | |
| download | node-c7f424e44b7e61b89f91cd344599c3d1cdfb88fe.tar.gz | |
fs: return blksize on stats object
Oversight to not pass blksize to fs.Stats on initialization.
Also added a test to make sure the object property has been set. Since
now on Windows both blksize and blocks will simply be set to undefined.
Diffstat (limited to 'test')
| -rw-r--r-- | test/simple/test-fs-stat.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/simple/test-fs-stat.js b/test/simple/test-fs-stat.js index 90b0ba52d..8c5a9c64c 100644 --- a/test/simple/test-fs-stat.js +++ b/test/simple/test-fs-stat.js @@ -36,6 +36,11 @@ fs.stat('.', function(err, stats) { assert(this === global); }); +fs.stat('.', function(err, stats) { + assert.ok(stats.hasOwnProperty('blksize')); + assert.ok(stats.hasOwnProperty('blocks')); +}); + fs.lstat('.', function(err, stats) { if (err) { got_error = true; |
