@@ -117,19 +117,18 @@ describe('gulp-bump: JSON comparison fixtures', function() {
117
117
bumpS . end ( ) ;
118
118
} ) ;
119
119
120
- it ( 'should add and bump preid version' , function ( done ) {
120
+ it ( 'should bump to a prerelease version with a preid ' , function ( done ) {
121
121
var fakeFile = new gutil . File ( {
122
- contents : new Buffer ( '{ "version": "0.1.0 "}' ) ,
122
+ contents : new Buffer ( '{ "version": "0.0.1 "}' ) ,
123
123
path : 'test/fixtures/test.json'
124
124
} ) ;
125
125
126
- var bumpS = bump ( { type : 'prerelease' , preid : 'beta ' } ) ;
126
+ var bumpS = bump ( { type : 'prerelease' , preid : 'alphaWhateverTheYWant ' } ) ;
127
127
128
128
bumpS . once ( 'data' , function ( newFile ) {
129
129
should . exist ( newFile ) ;
130
130
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' ) ;
133
132
return done ( ) ;
134
133
} ) ;
135
134
bumpS . write ( fakeFile ) ;
@@ -147,7 +146,6 @@ describe('gulp-bump: JSON comparison fixtures', function() {
147
146
bumpS . once ( 'data' , function ( newFile ) {
148
147
should . exist ( newFile ) ;
149
148
should . exist ( newFile . contents ) ;
150
- console . log ( String ( newFile . contents ) ) ;
151
149
JSON . parse ( newFile . contents . toString ( ) ) . version . should . equal ( '0.1.0-zeta.2' ) ;
152
150
return done ( ) ;
153
151
} ) ;
0 commit comments