1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15+ import { expect } from 'chai' ;
1516import { readFileSync } from 'fs' ;
16- import { resolve } from 'path' ;
17- import snapshot = require( 'snap-shot-it' ) ;
1817import { describe , it } from 'mocha' ;
19- import { expect } from 'chai ' ;
18+ import { resolve } from 'path ' ;
2019import { VersionRB } from '../../src/updaters/ruby/version-rb' ;
2120import { Version } from '../../src/version' ;
21+ import snapshot = require( 'snap-shot-it' ) ;
2222
2323const fixturesPath = './test/updaters/fixtures' ;
2424
@@ -31,8 +31,14 @@ describe('version.rb', () => {
3131 [ '0.2.0' , '"0.1.0"' , '"0.2.0"' , true , 'minor' ] ,
3232 [ '0.2.1' , '"0.2.0"' , '"0.2.1"' , true , 'patch' ] ,
3333 [ '0.2.11' , '"0.2.10"' , '"0.2.11"' , true , 'long patch' ] ,
34- [ '1.0.0-alpha1' , '"0.9.0"' , '"1.0.0-alpha1"' , true , 'prerelease' ] ,
35- [ '1.0.0-beta' , '"1.0.0-alpha1"' , '"1.0.0-beta"' , true , 'prerelease bump' ] ,
34+ [ '1.0.0-alpha1' , '"0.9.0"' , '"1.0.0.pre.alpha1"' , true , 'prerelease' ] ,
35+ [
36+ '1.0.0-beta' ,
37+ '"1.0.0-alpha1"' ,
38+ '"1.0.0.pre.beta"' ,
39+ true ,
40+ 'prerelease bump' ,
41+ ] ,
3642 [ '1.0.0' , '"1.0.0.beta"' , '"1.0.0"' , true , 'major' ] ,
3743 [ '1.0.1' , '"1.0.0"' , '"1.0.1"' , true , 'major patch' ] ,
3844 [ '1.0.0' , '"1.0"' , '"1.0"' , false , 'ignored' ] ,
0 commit comments