On Linux, fs.readdir() and fs.readdirSync() return sorted lists. On Windows they don't. Adding this test so if a Windows version is created, it will preserve the behavior on Linux.
Coverage remained the same at 93.939% when pulling c8ec2c64b559c1058704dcbfb221053c60e33702 on shdwjk:KnownOrder into 52c04e2b04c8c6fc0c76f6e00809cf9fee413ee6 on tarmolov:master.
On Linux,
fs.readdir()
andfs.readdirSync()
return sorted lists. On Windows they don't. Adding this test so if a Windows version is created, it will preserve the behavior on Linux.