22
33const cli = require ( '../fixtures/cli' ) ;
44const files = require ( '../fixtures/files' ) ;
5+ const check = require ( '../fixtures/check' ) ;
56const chai = require ( 'chai' ) ;
67
78chai . should ( ) ;
@@ -32,9 +33,9 @@ describe('bump --premajor', () => {
3233 output . status . should . equal ( 0 ) ;
3334
3435 output . lines . should . deep . equal ( [
35- '✔ Updated package.json to 1.0.0-beta.0' ,
36- '✔ Updated bower.json to 1.0.0-beta.0' ,
37- '✔ Updated component.json to 1.0.0-beta.0' ,
36+ ` ${ check } Updated package.json to 1.0.0-beta.0` ,
37+ ` ${ check } Updated bower.json to 1.0.0-beta.0` ,
38+ ` ${ check } Updated component.json to 1.0.0-beta.0` ,
3839 ] ) ;
3940
4041 files . json ( 'package.json' ) . should . deep . equal ( { version : '1.0.0-beta.0' } ) ;
@@ -51,7 +52,7 @@ describe('bump --premajor', () => {
5152 output . status . should . equal ( 0 ) ;
5253
5354 output . lines . should . deep . equal ( [
54- '✔ Updated package.json to 1.0.0-beta.0' ,
55+ ` ${ check } Updated package.json to 1.0.0-beta.0` ,
5556 ] ) ;
5657
5758 files . json ( 'package.json' ) . should . deep . equal ( { version : '1.0.0-beta.0' } ) ;
@@ -66,7 +67,7 @@ describe('bump --premajor', () => {
6667 output . status . should . equal ( 0 ) ;
6768
6869 output . lines . should . deep . equal ( [
69- '✔ Updated package.json to 2.0.0-beta.0' ,
70+ ` ${ check } Updated package.json to 2.0.0-beta.0` ,
7071 ] ) ;
7172
7273 files . json ( 'package.json' ) . should . deep . equal ( { version : '2.0.0-beta.0' } ) ;
@@ -81,7 +82,7 @@ describe('bump --premajor', () => {
8182 output . status . should . equal ( 0 ) ;
8283
8384 output . lines . should . deep . equal ( [
84- '✔ Updated package.json to 2.0.0-beta.0' ,
85+ ` ${ check } Updated package.json to 2.0.0-beta.0` ,
8586 ] ) ;
8687
8788 files . json ( 'package.json' ) . should . deep . equal ( { version : '2.0.0-beta.0' } ) ;
@@ -96,7 +97,7 @@ describe('bump --premajor', () => {
9697 output . status . should . equal ( 0 ) ;
9798
9899 output . lines . should . deep . equal ( [
99- '✔ Updated package.json to 2.0.0-alpha.0' ,
100+ ` ${ check } Updated package.json to 2.0.0-alpha.0` ,
100101 ] ) ;
101102
102103 files . json ( 'package.json' ) . should . deep . equal ( { version : '2.0.0-alpha.0' } ) ;
0 commit comments