Skip to content

Commit

Permalink
update basic package-file testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed Mar 3, 2019
1 parent 66729f6 commit 6a7c62b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/testPackageFiles.js
Expand Up @@ -33,6 +33,8 @@ describe('Test package.json and io-package.json', () => {
expect(npmPackage.author, 'ERROR: Author in package.json needs to exist').to.exist;
expect(ioPackage.common.authors, 'ERROR: Authors in io-package.json needs to exist').to.exist;

expect(ioPackage.common.license, 'ERROR: License missing in io-package in common.license').to.exist;

if (ioPackage.common.name.indexOf('template') !== 0) {
if (Array.isArray(ioPackage.common.authors)) {
expect(ioPackage.common.authors.length, 'ERROR: Author in io-package.json needs to be set').to.not.be.equal(0);
Expand Down Expand Up @@ -63,7 +65,7 @@ describe('Test package.json and io-package.json', () => {
console.log();
}

if (ioPackage.common.name.indexOf('vis-') !== 0) {
if (!ioPackage.common.controller && !ioPackage.common.onlyWWW && !ioPackage.common.noConfig) {
if (!ioPackage.common.materialize || !fs.existsSync(__dirname + '/../admin/index_m.html') || !fs.existsSync(__dirname + '/../gulpfile.js')) {
console.log('WARNING: Admin3 support is missing! Please add it');
console.log();
Expand Down

0 comments on commit 6a7c62b

Please sign in to comment.