       @fs.base.mkdir "#{tmpdir}/test/a_dir"
       @fs.base.writeFile "#{tmpdir}/test/a_dir/a_file", content: ''
       {files} = await @fs.glob "#{tmpdir}/test/*"
-      files.should.eql [
+      files.sort().should.eql [
+        path.normalize "#{tmpdir}/test/a_dir"
         path.normalize "#{tmpdir}/test/a_file"
-        path.normalize "#{tmpdir}/test/a_dir"
       ]
 
   they 'should traverse a directory recursively', ({ssh}) ->

      tmpdir: true
    , ({metadata: {tmpdir}}) ->
      {files} = await @fs.glob "#{tmpdir}/invalid/*.coffee"
      files.should.eql []
  
  they 'config `dot`', ({ssh}) ->
    nikita

      @fs.base.mkdir "#{tmpdir}/test/a_dir"
      @fs.base.writeFile "#{tmpdir}/test/a_dir/a_file", content: ''
      {files} = await @fs.glob "#{tmpdir}/test/**", trailing: true
      files.sort().should.eql [
        "#{tmpdir}/test/"
        "#{tmpdir}/test/a_dir/"
        "#{tmpdir}/test/a_dir/a_file"
        "#{tmpdir}/test/a_file"
      ]
