@@ -117,19 +117,18 @@ describe('gulp-bump: JSON comparison fixtures', function() {
117117 bumpS . end ( ) ;
118118 } ) ;
119119
120- it ( 'should add and bump preid version' , function ( done ) {
120+ it ( 'should bump to a prerelease version with a preid ' , function ( done ) {
121121 var fakeFile = new gutil . File ( {
122- contents : new Buffer ( '{ "version": "0.1.0 "}' ) ,
122+ contents : new Buffer ( '{ "version": "0.0.1 "}' ) ,
123123 path : 'test/fixtures/test.json'
124124 } ) ;
125125
126- var bumpS = bump ( { type : 'prerelease' , preid : 'beta ' } ) ;
126+ var bumpS = bump ( { type : 'prerelease' , preid : 'alphaWhateverTheYWant ' } ) ;
127127
128128 bumpS . once ( 'data' , function ( newFile ) {
129129 should . exist ( newFile ) ;
130130 should . exist ( newFile . contents ) ;
131- console . log ( String ( newFile . contents ) ) ;
132- JSON . parse ( newFile . contents . toString ( ) ) . version . should . equal ( '0.1.1-beta.0' ) ;
131+ JSON . parse ( newFile . contents . toString ( ) ) . version . should . equal ( '0.0.2-alphaWhateverTheYWant.0' ) ;
133132 return done ( ) ;
134133 } ) ;
135134 bumpS . write ( fakeFile ) ;
@@ -147,7 +146,6 @@ describe('gulp-bump: JSON comparison fixtures', function() {
147146 bumpS . once ( 'data' , function ( newFile ) {
148147 should . exist ( newFile ) ;
149148 should . exist ( newFile . contents ) ;
150- console . log ( String ( newFile . contents ) ) ;
151149 JSON . parse ( newFile . contents . toString ( ) ) . version . should . equal ( '0.1.0-zeta.2' ) ;
152150 return done ( ) ;
153151 } ) ;
0 commit comments