@@ -35,7 +35,7 @@ describe('init', function() {
35
35
// Install an adapter
36
36
commitizenInit ( sh , config . paths . endUserRepo , 'cz-conventional-changelog' ) ;
37
37
38
- // TEST
38
+ // TEST
39
39
40
40
// Check resulting json
41
41
let packageJson = util . getParsedPackageJsonFromPath ( config . paths . endUserRepo ) ;
@@ -70,12 +70,12 @@ describe('init', function() {
70
70
sh . cd ( config . paths . endUserRepo ) ;
71
71
commitizenInit ( sh , config . paths . endUserRepo , 'cz-conventional-changelog' , { saveDev :true } ) ;
72
72
73
- // TEST
74
- sh . cd ( config . paths . endUserRepo ) ;
73
+ // TEST
74
+ sh . cd ( config . paths . endUserRepo ) ;
75
75
// Adding a second adapter
76
76
expect ( function ( ) {
77
77
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 / ) ;
79
79
80
80
// Check resulting json
81
81
let packageJson = util . getParsedPackageJsonFromPath ( config . paths . endUserRepo ) ;
@@ -92,7 +92,7 @@ describe('init', function() {
92
92
// SETUP
93
93
94
94
// Add a first adapter
95
- sh . cd ( config . paths . endUserRepo ) ;
95
+ sh . cd ( config . paths . endUserRepo ) ;
96
96
commitizenInit ( sh , config . paths . endUserRepo , 'cz-conventional-changelog' , { saveDev :true } ) ;
97
97
98
98
// TEST
@@ -115,7 +115,7 @@ describe('init', function() {
115
115
// SETUP
116
116
117
117
// Add a first adapter
118
- sh . cd ( config . paths . endUserRepo ) ;
118
+ sh . cd ( config . paths . endUserRepo ) ;
119
119
commitizenInit ( sh , config . paths . endUserRepo , 'cz-conventional-changelog' ) ;
120
120
let packageJson = util . getParsedPackageJsonFromPath ( config . paths . endUserRepo ) ;
121
121
@@ -129,7 +129,7 @@ describe('init', function() {
129
129
// // But you CAN NOT increment a range
130
130
// expect(semver.inc(range, 'major')).to.equal(null);
131
131
// 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
133
133
// in our package.json breaks this test
134
134
135
135
} ) ;
@@ -141,7 +141,7 @@ describe('init', function() {
141
141
// SETUP
142
142
143
143
// Add a first adapter
144
- sh . cd ( config . paths . endUserRepo ) ;
144
+ sh . cd ( config . paths . endUserRepo ) ;
145
145
commitizenInit ( sh , config . paths . endUserRepo , 'cz-conventional-changelog' , { saveExact : true } ) ;
146
146
let packageJson = util . getParsedPackageJsonFromPath ( config . paths . endUserRepo ) ;
147
147
@@ -161,10 +161,10 @@ describe('init', function() {
161
161
afterEach ( function ( ) {
162
162
// All this should do is archive the tmp path to the artifacts
163
163
clean . afterEach ( sh , config . paths . tmp , config . preserve ) ;
164
- } ) ;
164
+ } ) ;
165
165
166
166
after ( 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
168
168
// the preserve setting in the config
169
169
clean . after ( sh , config . paths . tmp , config . preserve ) ;
170
- } ) ;
170
+ } ) ;
0 commit comments