Update test

pull/303/head
David Finol 2021-12-13 09:24:25 -06:00
parent b48285522c
commit 5c12b39169
1 changed files with 7 additions and 1 deletions

View File

@ -125,7 +125,13 @@ describe('Versioning', () => {
'is happy with valid %s',
(description) => {
expect(Versioning.descriptionRegex1.test(description)).toBeTruthy();
expect(Versioning.descriptionRegex1.test(description?.slice(1))).toBeTruthy();
},
);
test.each(['1.1-1-g12345678', '0.1-2-g12345678', '0.0-500-gA9B6C3D0-dirty'])(
'accepts valid semantic versions without v-prefix %s',
(description) => {
expect(Versioning.descriptionRegex1.test(description)).toBeTruthy();
},
);