'use strict';

var fs = require('fs');

exports.mkdocs = {

  basic: function (test) {
    test.expect(1);

    var expected = [
          '404.html',
          'about',
          'base.html',
          'content.html',
          'css',
          'fonts',
          'img',
          'index.html',
          'js',
          'mkdocs',
          'nav-sub.html',
          'nav.html',
          'sitemap.xml',
          'toc.html'
        ],
        actual = fs.readdirSync('test/basic/site')
          // Workaround for an apparent bug in mkdocs; some files are
          // copied to the output directory
          .filter(function (name) {
            return !/\.py(?:c)?$/.test(name);
          })
          .sort();

    test.deepEqual(expected, actual, 'should generate output files');

    test.done();
  }

};

'use strict';

var fs = require('fs');

exports.mkdocs = {

  basic: function (test) {
    test.expect(1);

    var expected = [
          '404.html',
          'about',
          'css',
          'fonts',
          'img',
          'index.html',
          'js',
          'mkdocs',
          'sitemap.xml'
        ],
        actual = fs.readdirSync('test/basic/site')
          // Workaround for an apparent bug in mkdocs; some files are
          // copied to the output directory
          .filter(function (name) {
            return !/\.py(?:c)?$/.test(name);
          })
          .sort();

    test.deepEqual(expected, actual, 'should generate output files');

    test.done();
  }

};

Update expecyed output file list
Update expecyed output file list

The new mkdocs version seems to produce less files in the output root directory.
