{"size": 598, "ext": "js", "max_stars_repo_path": "test/test.js", "max_stars_repo_name": "generate/generate-defaults", "max_stars_repo_stars_event_min_datetime": "2016-03-06T13:20:24.000Z", "max_stars_repo_stars_event_max_datetime": "2017-12-19T23:17:44.000Z", "max_issues_repo_path": "test/test.js", "max_issues_repo_name": "generate/gen-defaults", "max_issues_repo_issues_event_min_datetime": "2016-06-23T18:34:37.000Z", "max_issues_repo_issues_event_max_datetime": "2016-06-23T18:40:54.000Z", "max_forks_repo_path": "test/test.js", "max_forks_repo_name": "generate/gen-defaults", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 23.0, "max_line_length": 66, "alphanum_fraction": 0.5785953177}
'use strict';

require('mocha');
var assert = require('assert');
var generate = require('generate');
var defaults = require('..');
var app;

describe('generate-defaults', function() {
  beforeEach(function() {
    app = generate();
    app.use(defaults);
  });

  describe('plugin', function() {
    describe('engine', function() {
      it('should add an engine to the instance', function(cb) {
        assert(app.engines['.*']);
        assert.equal(typeof app.engines['.*'], 'object');
        assert.equal(typeof app.engines['.*'].render, 'function');
        cb();
      });
    });
  });
});
