Skip to content

Commit

Permalink
Merge pull request #1268 from kubernetes-client/version_test
Browse files Browse the repository at this point in the history
Add an additional test for version synchronization
  • Loading branch information
k8s-ci-robot authored Sep 26, 2023
2 parents 7cd02ce + dd06fae commit 8644026
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/package_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ describe('package', () => {
expect(v1).to.equal(v2);
});

it('package-lock reference version should match', () => {
const v1 = require('../package.json').version;
const v2 = require('../package-lock.json').packages[''].version;
expect(v1).to.equal(v2);
});

it('package-lock should only reference npm', () => {
const validateDependencies = (deps) => {
if (!deps.dependencies) {
Expand Down

0 comments on commit 8644026

Please sign in to comment.