Sha256: fd1313ccd5358c4070b8bf7f18cb3a0f6148ba1e5ec75025041e0f92027db008

Contents?: true

Size: 385 Bytes

Versions: 178

Compression:

Stored size: 385 Bytes

Contents

var test = require("tap").test
var fs = require("../fs.js")

var readdir = fs.readdir
fs.readdir = function(path, cb) {
  process.nextTick(function() {
    cb(null, ["b", "z", "a"])
  })
}

var g = require("../")

test("readdir reorder", function (t) {
  g.readdir("whatevers", function (er, files) {
    if (er)
      throw er
    t.same(files, [ "a", "b", "z" ])
    t.end()
  })
})

Version data entries

178 entries across 150 versions & 8 rubygems

Version Path
trusty-festivity-extension-2.3.8 node_modules/bower/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.3.7 node_modules/bower/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.3.6 node_modules/bower/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.3.5 node_modules/bower/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.3.4 node_modules/bower/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.3.3 node_modules/bower/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.3.2 node_modules/bower/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.3.1 node_modules/bower/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.3.0 node_modules/bower/node_modules/graceful-fs/test/readdir-sort.js
hooch-0.4.2 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/fs-extra/node_modules/graceful-fs/test/readdir-sort.js
hooch-0.4.1 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/fs-extra/node_modules/graceful-fs/test/readdir-sort.js
hooch-0.4.0 jasmine/node_modules/karma-phantomjs-launcher/node_modules/phantomjs/node_modules/fs-extra/node_modules/graceful-fs/test/readdir-sort.js
eslint_node_modules-1.6.0.1 vendor/node_modules/eslint/node_modules/file-entry-cache/node_modules/flat-cache/node_modules/read-json-sync/node_modules/graceful-fs/test/readdir-sort.js
eslint_node_modules-1.6.0 vendor/node_modules/eslint/node_modules/file-entry-cache/node_modules/flat-cache/node_modules/read-json-sync/node_modules/graceful-fs/test/readdir-sort.js
gulp_assets-1.0.0.pre.5 template/node_modules/babel-core/node_modules/regenerator/node_modules/commoner/node_modules/graceful-fs/test/readdir-sort.js
gulp_assets-1.0.0.pre.5 template/node_modules/css-mqpacker/node_modules/fs-extra/node_modules/graceful-fs/test/readdir-sort.js
gulp_assets-1.0.0.pre.5 template/node_modules/webpack/node_modules/enhanced-resolve/node_modules/graceful-fs/test/readdir-sort.js
gulp_assets-1.0.0.pre.5 template/node_modules/csswring/node_modules/fs-extra/node_modules/graceful-fs/test/readdir-sort.js
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/pangyp/node_modules/graceful-fs/test/readdir-sort.js
gulp_assets-1.0.0.pre.5 template/node_modules/gulp/node_modules/vinyl-fs/node_modules/graceful-fs/test/readdir-sort.js