@@ -141,15 +141,6 @@ describe('version-utils', () => {
141141 expect ( prerelease ) . toBe ( 'rc.4' ) ;
142142 } ) ;
143143
144- it ( 'should reject pre-release version with patch != 0' , ( ) => {
145- function testInvalidVersion ( ) {
146- parseVersion ( '0.66.3-rc.4' , 'release' ) ;
147- }
148- expect ( testInvalidVersion ) . toThrowErrorMatchingInlineSnapshot (
149- `"Version 0.66.3-rc.4 is not valid for Release"` ,
150- ) ;
151- } ) ;
152-
153144 it ( 'should reject pre-release version from tag with random prerelease pattern' , ( ) => {
154145 function testInvalidVersion ( ) {
155146 parseVersion ( 'v0.66.0-something_invalid' , 'release' ) ;
@@ -228,15 +219,6 @@ describe('version-utils', () => {
228219 expect ( prerelease ) . toBe ( 'rc.0' ) ;
229220 } ) ;
230221
231- it ( 'should reject dryrun with prerelease . version with patch different from 0' , ( ) => {
232- function testInvalidFunction ( ) {
233- parseVersion ( '0.20.3-rc.0' , 'dry-run' ) ;
234- }
235- expect ( testInvalidFunction ) . toThrowErrorMatchingInlineSnapshot (
236- `"Version 0.20.3-rc.0 is not valid for dry-runs"` ,
237- ) ;
238- } ) ;
239-
240222 it ( 'should parse dryrun with prerelease - version' , ( ) => {
241223 const { version, major, minor, patch, prerelease} = parseVersion (
242224 '0.20.0-rc-0' ,
@@ -249,15 +231,6 @@ describe('version-utils', () => {
249231 expect ( prerelease ) . toBe ( 'rc-0' ) ;
250232 } ) ;
251233
252- it ( 'should reject dryrun with prerelease - version with patch different from 0' , ( ) => {
253- function testInvalidFunction ( ) {
254- parseVersion ( '0.20.3-rc-0' , 'dry-run' ) ;
255- }
256- expect ( testInvalidFunction ) . toThrowErrorMatchingInlineSnapshot (
257- `"Version 0.20.3-rc-0 is not valid for dry-runs"` ,
258- ) ;
259- } ) ;
260-
261234 it ( 'should parse dryrun with main version' , ( ) => {
262235 const { version, major, minor, patch, prerelease} = parseVersion (
263236 '1000.0.0' ,
0 commit comments