Skip to content

Commit

Permalink
fixes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm1957 committed Feb 27, 2024
1 parent 7d7b2ce commit cc7d561
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/tests/packageFiles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ export function validatePackageFiles(adapterDir: string): void {
);
});

it(`property main is defined for non onlyWWW adapters`, () => {
if (!iopackContent.common.onlyWWW){
if (!iopackContent.common.onlyWWW){

Check failure on line 129 in src/tests/packageFiles/index.ts

View workflow job for this annotation

GitHub Actions / check-and-lint (16.x)

Insert `·`
it(`property main is defined for non onlyWWW adapters`, () => {
expect(packageContent.main).to.not.be.undefined;
}
});

});
};

Check failure on line 133 in src/tests/packageFiles/index.ts

View workflow job for this annotation

GitHub Actions / check-and-lint (16.x)

Delete `;`

Check failure on line 134 in src/tests/packageFiles/index.ts

View workflow job for this annotation

GitHub Actions / check-and-lint (16.x)

Delete `↹↹↹`
it(`The repository type is "git"`, () => {
expect(packageContent.repository.type).to.equal("git");
});
Expand Down Expand Up @@ -224,11 +224,11 @@ export function validatePackageFiles(adapterDir: string): void {
});
} else {
it(`common.license must exist without common.licenseInformation`, () => {
expect(iopackContent.common.license, 'common.license or common.licenseInformation must exit').to.not.be.undefined;
expect(iopackContent.common.license, 'common.licenseInformation (preferred) or common.license (deprecated) must exist').to.not.be.undefined;

Check failure on line 227 in src/tests/packageFiles/index.ts

View workflow job for this annotation

GitHub Actions / check-and-lint (16.x)

Replace `iopackContent.common.license,·'common.licenseInformation·(preferred)·or·common.license·(deprecated)·must·exist'` with `⏎↹↹↹↹↹↹iopackContent.common.license,⏎↹↹↹↹↹↹"common.licenseInformation·(preferred)·or·common.license·(deprecated)·must·exist",⏎↹↹↹↹↹`
});

Check failure on line 228 in src/tests/packageFiles/index.ts

View workflow job for this annotation

GitHub Actions / check-and-lint (16.x)

Delete `↹`
}

if (iopackContent.common.tier) {
if (iopackContent.common.tier != undefined) {
it(`common.tier must be 1, 2 or 3`, () => {
expect(iopackContent.common.tier).to.be.at.least(1);
expect(iopackContent.common.tier).to.be.at.most(3);
Expand Down

0 comments on commit cc7d561

Please sign in to comment.