Sha256: eae3152ccfc08b132e5b2ff19db21bde366c9c455d33ba4c406622cb6369387c
Contents?: true
Size: 576 Bytes
Versions: 2
Compression:
Stored size: 576 Bytes
Contents
var assert = require('assert') var readdir = require('../index') describe('readdir', function() { it('correctly lists all files in nested directories', function (done) { var expectedFiles = [__dirname + '/testdir/a/a', __dirname + '/testdir/a/beans', __dirname + '/testdir/b/123', __dirname + '/testdir/b/b/hurp-durp', __dirname + '/testdir/c.txt', __dirname + '/testdir/d.txt' ] readdir(__dirname + '/testdir', function(err, list) { assert.ifError(err); assert.deepEqual(list.sort(), expectedFiles.sort()); done() }) }) })
Version data entries
2 entries across 2 versions & 1 rubygems