0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.223.171.83


Current Path : /proc/self/root/usr/lib/nodejs/npm/node_modules/readdir-scoped-modules/test/
Upload File :
Current File : //proc/self/root/usr/lib/nodejs/npm/node_modules/readdir-scoped-modules/test/basic.js

var test = require ('tap') . test
var readdir = require ('../readdir.js')

test ('basic', function (t) {
  // should not get {a,b}/{x,y}, but SHOULD get @org/ and @scope children
  var expect = [ '@org/x', '@org/y', '@scope/x', '@scope/y', 'a', 'b' ]

  readdir (__dirname + '/fixtures', function (er, kids) {
    if (er)
      throw er
    t.same(kids, expect)
    t.end()
  })
})