Skip to content

Commit e4bdf4c

Browse files
committed
Add basic test to ensure package-lock version always matches
1 parent 039ed70 commit e4bdf4c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/package_test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { expect } from 'chai';
2+
3+
// Generic set of tests to verify the package is built and configured correctly
4+
describe('package', () => {
5+
it('package-lock.json should match package.json', () => {
6+
const v1 = require('../package.json').version;
7+
const v2 = require('../package-lock.json').version;
8+
expect(v1).to.equal(v2);
9+
});
10+
});

0 commit comments

Comments
 (0)