expect(ioPackage.common.authors.length,'ERROR: Author in io-package.json needs to be set').to.not.be.equal(0);
if(ioPackage.common.authors.length===1){
expect(ioPackage.common.authors[0],'ERROR: Author in io-package.json needs to be a real name').to.not.be.equal('my Name <my@email.com>');
}
}
else{
expect(ioPackage.common.authors,'ERROR: Author in io-package.json needs to be a real name').to.not.be.equal('my Name <my@email.com>');
}
}
else{
console.log('WARNING: Testing for set authors field in io-package skipped because template adapter');
console.log();
}
expect(fs.existsSync(__dirname+'/../README.md'),'ERROR: README.md needs to exist! Please create one with description, detail information and changelog. English is mandatory.').to.be.true;
console.log('Warning: The README.md should have a section ## Changelog');
console.log();
}
expect((licenseFileExists||fileContentReadme.indexOf('## License')!==-1),'A LICENSE must exist as LICENSE file or as part of the README.md').to.be.true;
if(!licenseFileExists){
console.log('Warning: The License should also exist as LICENSE file');
console.log();
}
if(fileContentReadme.indexOf('## License')===-1){
console.log('Warning: The README.md should also have a section ## License to be shown in Admin3');