apache / cordova-lib

Apache Cordova Tooling Library
https://cordova.apache.org/
Apache License 2.0
221 stars 243 forks source link

test(pkgJson): make expectations work for npm 5 to 7 #865

Closed raphinesse closed 3 years ago

raphinesse commented 3 years ago

Motivation and Context

In some cases, npm 7 causes the package.json to look slightly different than with npm 6. This PR changes our tests so that they work with both flavors.

Description

This PR addresses the following differences:

Saved GitHub URL format in package.json:

Empty devDependencies format in package.json:

Testing