@@ -41,7 +41,7 @@ describe('root commands', () => {
41
41
} ) ;
42
42
43
43
describe ( 'create' , ( ) => {
44
- describe ( 'context' , async ( ) => {
44
+ describe ( 'context' , ( ) => {
45
45
it ( 'should handle creation from spec' , async ( ) => {
46
46
const argv = {
47
47
filename : {
@@ -56,7 +56,7 @@ describe('root commands', () => {
56
56
} ) ;
57
57
} ) ;
58
58
59
- describe ( 'pipeline' , async ( ) => {
59
+ describe ( 'pipeline' , ( ) => {
60
60
it ( 'should handle creation from spec' , async ( ) => {
61
61
const argv = {
62
62
filename : {
@@ -73,7 +73,7 @@ describe('root commands', () => {
73
73
} ) ;
74
74
75
75
describe ( 'delete' , ( ) => {
76
- describe ( 'context' , async ( ) => {
76
+ describe ( 'context' , ( ) => {
77
77
it ( 'should handle deletion by spec' , async ( ) => {
78
78
const argv = {
79
79
filename : {
@@ -88,7 +88,7 @@ describe('root commands', () => {
88
88
} ) ;
89
89
} ) ;
90
90
91
- describe ( 'pipeline' , async ( ) => {
91
+ describe ( 'pipeline' , ( ) => {
92
92
it ( 'should handle deletion by spec' , async ( ) => {
93
93
const argv = {
94
94
filename : {
@@ -105,7 +105,7 @@ describe('root commands', () => {
105
105
} ) ;
106
106
107
107
describe ( 'replace' , ( ) => {
108
- describe ( 'context' , async ( ) => {
108
+ describe ( 'context' , ( ) => {
109
109
it ( 'should handle replacing by spec' , async ( ) => {
110
110
const argv = {
111
111
filename : {
@@ -120,7 +120,7 @@ describe('root commands', () => {
120
120
} ) ;
121
121
} ) ;
122
122
123
- describe ( 'pipeline' , async ( ) => {
123
+ describe ( 'pipeline' , ( ) => {
124
124
it ( 'should handle replacing by spec' , async ( ) => {
125
125
const argv = {
126
126
filename : {
@@ -137,7 +137,7 @@ describe('root commands', () => {
137
137
} ) ;
138
138
139
139
describe ( 'validate' , ( ) => {
140
- describe ( 'Not valid yaml ' , async ( ) => {
140
+ describe ( 'Not valid yaml ' , ( ) => {
141
141
it ( 'should throw error for not valid file' , async ( ) => {
142
142
const argv = {
143
143
filenames : [ './__mocks__/codefresh.yml' ] ,
@@ -150,23 +150,23 @@ describe('root commands', () => {
150
150
} ) ;
151
151
152
152
describe ( 'version' , ( ) => {
153
- describe ( 'api' , async ( ) => {
153
+ describe ( 'api' , ( ) => {
154
154
it ( 'should handle getting version' , async ( ) => {
155
155
const argv = { component : 'api' } ;
156
156
await versionCmd . handler ( argv ) ;
157
157
await verifyResponsesReturned ( [ DEFAULT_RESPONSE ] ) ; // eslint-disable-line
158
158
} ) ;
159
159
} ) ;
160
160
161
- describe ( 'hermes' , async ( ) => {
161
+ describe ( 'hermes' , ( ) => {
162
162
it ( 'should handle getting version' , async ( ) => {
163
163
const argv = { component : 'hermes' } ;
164
164
await versionCmd . handler ( argv ) ;
165
165
await verifyResponsesReturned ( [ DEFAULT_RESPONSE ] ) ; // eslint-disable-line
166
166
} ) ;
167
167
} ) ;
168
168
169
- describe ( 'nomios' , async ( ) => {
169
+ describe ( 'nomios' , ( ) => {
170
170
it ( 'should handle getting version' , async ( ) => {
171
171
const argv = { component : 'nomios' } ;
172
172
await versionCmd . handler ( argv ) ;
@@ -178,7 +178,7 @@ describe('root commands', () => {
178
178
describe ( 'Approve pending-approval workflow' , ( ) => {
179
179
it ( 'should handle approve from spec' , async ( ) => {
180
180
const argv = {
181
- buildId : 'buildId'
181
+ buildId : 'buildId' ,
182
182
} ;
183
183
await approveCmd . handler ( argv ) ;
184
184
await verifyResponsesReturned ( [ DEFAULT_RESPONSE , DEFAULT_RESPONSE ] ) ; // eslint-disable-line
@@ -188,7 +188,7 @@ describe('root commands', () => {
188
188
describe ( 'Deny pending-approval workflow' , ( ) => {
189
189
it ( 'should handle deny from spec' , async ( ) => {
190
190
const argv = {
191
- buildId : 'buildId'
191
+ buildId : 'buildId' ,
192
192
} ;
193
193
await denyCmd . handler ( argv ) ;
194
194
await verifyResponsesReturned ( [ DEFAULT_RESPONSE , DEFAULT_RESPONSE ] ) ; // eslint-disable-line
0 commit comments