0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-23 22:27:34 -05:00
verdaccio/packages/cli/test/utils.spec.ts
Juan Picado 5becf3f257 feat: use clipanion over commander (#2159)
* feat: use clipanion over commander

* chore: update

* chore: add missing options

* chore: fix arguments

* chore: format code

* chore: update

* chore: fix missing node conf

* chore: add version

* Update setup.ts

* chore: fix config flag

* chore: add changeset
2021-04-09 17:54:41 +02:00

13 lines
342 B
TypeScript

import { isVersionValid } from '../src/utils';
test('valid version node.js', () => {
expect(isVersionValid('14.0.0')).toBeTruthy();
});
test('is invalid version node.js', () => {
expect(isVersionValid('11.0.0')).toBeFalsy();
});
test('Node 12 should valid version node.js', () => {
expect(isVersionValid('12.0.0')).toBeTruthy();
});