@@ -68,7 +68,7 @@ describe('rdme versions*', () => {
68
68
mockRequest . done ( ) ;
69
69
} ) ;
70
70
71
- it ( 'should get a specific version object if version flag provided' , async ( ) => {
71
+ it ( 'should get a specific version object if version flag provided' , ( ) => {
72
72
const mockRequest = nock ( config . host )
73
73
. get ( `/api/v1/version/${ version } ` )
74
74
. basicAuth ( { user : key } )
@@ -81,7 +81,7 @@ describe('rdme versions*', () => {
81
81
} ) ;
82
82
} ) ;
83
83
84
- it ( 'should get a specific version object if version flag provided and return it in a raw format' , async ( ) => {
84
+ it ( 'should get a specific version object if version flag provided and return it in a raw format' , ( ) => {
85
85
const mockRequest = nock ( config . host )
86
86
. get ( `/api/v1/version/${ version } ` )
87
87
. basicAuth ( { user : key } )
@@ -109,7 +109,7 @@ describe('rdme versions*', () => {
109
109
} ) ;
110
110
} ) ;
111
111
112
- it ( 'should get a specific version object' , async ( ) => {
112
+ it ( 'should get a specific version object' , ( ) => {
113
113
promptHandler . createVersionPrompt . mockResolvedValue ( {
114
114
is_stable : true ,
115
115
is_beta : false ,
@@ -129,7 +129,7 @@ describe('rdme versions*', () => {
129
129
} ) ;
130
130
} ) ;
131
131
132
- it ( 'should catch any post request errors' , async ( ) => {
132
+ it ( 'should catch any post request errors' , ( ) => {
133
133
expect . assertions ( 1 ) ;
134
134
promptHandler . createVersionPrompt . mockResolvedValue ( {
135
135
is_stable : false ,
@@ -160,15 +160,15 @@ describe('rdme versions*', () => {
160
160
} ) ;
161
161
} ) ;
162
162
163
- it ( 'should delete a specific version' , async ( ) => {
163
+ it ( 'should delete a specific version' , ( ) => {
164
164
const mockRequest = nock ( config . host ) . delete ( `/api/v1/version/${ version } ` ) . basicAuth ( { user : key } ) . reply ( 200 ) ;
165
165
166
166
return deleteVersion . run ( { key, version } ) . then ( ( ) => {
167
167
mockRequest . done ( ) ;
168
168
} ) ;
169
169
} ) ;
170
170
171
- it ( 'should catch any request errors' , async ( ) => {
171
+ it ( 'should catch any request errors' , ( ) => {
172
172
const mockRequest = nock ( config . host ) . delete ( `/api/v1/version/${ version } ` ) . basicAuth ( { user : key } ) . reply ( 400 ) ;
173
173
174
174
return deleteVersion . run ( { key, version } ) . catch ( err => {
@@ -193,7 +193,7 @@ describe('rdme versions*', () => {
193
193
} ) ;
194
194
} ) ;
195
195
196
- it ( 'should update a specific version object' , async ( ) => {
196
+ it ( 'should update a specific version object' , ( ) => {
197
197
promptHandler . createVersionPrompt . mockResolvedValue ( {
198
198
is_stable : false ,
199
199
is_beta : false ,
@@ -213,7 +213,7 @@ describe('rdme versions*', () => {
213
213
} ) ;
214
214
} ) ;
215
215
216
- it ( 'should catch any put request errors' , async ( ) => {
216
+ it ( 'should catch any put request errors' , ( ) => {
217
217
expect . assertions ( 1 ) ;
218
218
promptHandler . createVersionPrompt . mockResolvedValue ( {
219
219
is_stable : false ,
0 commit comments