Sha256: 28648a721066a1d047d64022c27b302c240af633e47b45d13197336c9ea30103

Contents?: true

Size: 404 Bytes

Versions: 225

Compression:

Stored size: 404 Bytes

Contents

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

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
    console.error(files)
    t.same(files, [ "a", "b", "z" ])
    t.end()
  })
})

Version data entries

225 entries across 142 versions & 5 rubygems

Version Path
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.5.18 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.5.17 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.5.16 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.5.15 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.5.14 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.5.13 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.5.12 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.5.11 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.5.10 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.5.9 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.5.8 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.5.7 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.5.6 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.5.5 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js
trusty-festivity-extension-2.5.4 node_modules/bower/node_modules/bower-json/node_modules/graceful-fs/test/readdir-sort.js