@@ -35,7 +35,7 @@ describe('init', function() {
3535 // Install an adapter
3636 commitizenInit ( sh , config . paths . endUserRepo , 'cz-conventional-changelog' ) ;
3737
38- // TEST
38+ // TEST
3939
4040 // Check resulting json
4141 let packageJson = util . getParsedPackageJsonFromPath ( config . paths . endUserRepo ) ;
@@ -70,12 +70,12 @@ describe('init', function() {
7070 sh . cd ( config . paths . endUserRepo ) ;
7171 commitizenInit ( sh , config . paths . endUserRepo , 'cz-conventional-changelog' , { saveDev :true } ) ;
7272
73- // TEST
74- sh . cd ( config . paths . endUserRepo ) ;
73+ // TEST
74+ sh . cd ( config . paths . endUserRepo ) ;
7575 // Adding a second adapter
7676 expect ( function ( ) {
7777 commitizenInit ( sh , config . paths . endUserRepo , 'cz-jira-smart-commit' , { saveDev :true } ) ;
78- } ) . to . throw ( ) ;
78+ } ) . to . throw ( / a l r e a d y c o n f i g u r e d / ) ;
7979
8080 // Check resulting json
8181 let packageJson = util . getParsedPackageJsonFromPath ( config . paths . endUserRepo ) ;
@@ -92,7 +92,7 @@ describe('init', function() {
9292 // SETUP
9393
9494 // Add a first adapter
95- sh . cd ( config . paths . endUserRepo ) ;
95+ sh . cd ( config . paths . endUserRepo ) ;
9696 commitizenInit ( sh , config . paths . endUserRepo , 'cz-conventional-changelog' , { saveDev :true } ) ;
9797
9898 // TEST
@@ -115,7 +115,7 @@ describe('init', function() {
115115 // SETUP
116116
117117 // Add a first adapter
118- sh . cd ( config . paths . endUserRepo ) ;
118+ sh . cd ( config . paths . endUserRepo ) ;
119119 commitizenInit ( sh , config . paths . endUserRepo , 'cz-conventional-changelog' ) ;
120120 let packageJson = util . getParsedPackageJsonFromPath ( config . paths . endUserRepo ) ;
121121
@@ -129,7 +129,7 @@ describe('init', function() {
129129 // // But you CAN NOT increment a range
130130 // expect(semver.inc(range, 'major')).to.equal(null);
131131 // TODO: We need to figure out how to check if the repo has save exact set
132- // in the config before we can re-enable this. The --save-exact setting
132+ // in the config before we can re-enable this. The --save-exact setting
133133 // in our package.json breaks this test
134134
135135 } ) ;
@@ -141,7 +141,7 @@ describe('init', function() {
141141 // SETUP
142142
143143 // Add a first adapter
144- sh . cd ( config . paths . endUserRepo ) ;
144+ sh . cd ( config . paths . endUserRepo ) ;
145145 commitizenInit ( sh , config . paths . endUserRepo , 'cz-conventional-changelog' , { saveExact : true } ) ;
146146 let packageJson = util . getParsedPackageJsonFromPath ( config . paths . endUserRepo ) ;
147147
@@ -161,10 +161,10 @@ describe('init', function() {
161161afterEach ( function ( ) {
162162 // All this should do is archive the tmp path to the artifacts
163163 clean . afterEach ( sh , config . paths . tmp , config . preserve ) ;
164- } ) ;
164+ } ) ;
165165
166166after ( function ( ) {
167- // Once everything is done, the artifacts should be cleaned up based on
167+ // Once everything is done, the artifacts should be cleaned up based on
168168 // the preserve setting in the config
169169 clean . after ( sh , config . paths . tmp , config . preserve ) ;
170- } ) ;
170+ } ) ;
0 commit comments