{"size": 472, "ext": "js", "max_stars_repo_path": "__tests__/test-license-files.js", "max_stars_repo_name": "jozefizso/generator-license", "max_stars_repo_stars_event_min_datetime": "2015-06-12T22:12:24.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-08T05:29:30.000Z", "max_issues_repo_path": "__tests__/test-license-files.js", "max_issues_repo_name": "jozefizso/generator-license", "max_issues_repo_issues_event_min_datetime": "2015-04-29T08:50:11.000Z", "max_issues_repo_issues_event_max_datetime": "2020-03-07T12:05:27.000Z", "max_forks_repo_path": "__tests__/test-license-files.js", "max_forks_repo_name": "jozefizso/generator-license", "max_forks_repo_forks_event_min_datetime": "2015-04-28T21:13:51.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-27T10:56:47.000Z"}
{"max_stars_count": 55, "max_issues_count": 48, "max_forks_count": 34, "avg_line_length": 33.7142857143, "max_line_length": 101, "alphanum_fraction": 0.6800847458}
'use strict';
const assert = require('yeoman-assert');
const licensesToTest = require('../app').licenses;

describe('Ensure all valid licenses have templates', () => {
  licensesToTest.forEach((license) => {
    const expectedLicenseFilename = license.value + '.txt';

    it(`license ${license.name} have corresponding template file ${expectedLicenseFilename}`, () => {
      assert.file(require.resolve('../app/templates/' + expectedLicenseFilename));
    });
  });
});
