@@ -141,7 +141,7 @@ describe('invalid api:create', () => {
141141 '--setdefault'
142142 ] )
143143 . catch ( err => {
144- expect ( err . message ) . to . contains ( 'Object doesn\'t exist' )
144+ expect ( err . message ) . to . contain ( 'Object doesn\'t exist' )
145145 } )
146146 . it ( 'error shows as create failed and publish and setdefault are not executed' )
147147
@@ -162,7 +162,7 @@ describe('invalid api:create', () => {
162162 )
163163 . command ( [ 'api:create' , validIdentifier , '-f=test/resources/valid_api.yaml' , '--setdefault' , '--published=publish' ] )
164164 . catch ( err => {
165- expect ( err . message ) . to . contains ( 'An error occurred. Publishing API failed' )
165+ expect ( err . message ) . to . contain ( 'An error occurred. Publishing API failed' )
166166 } )
167167 . it ( 'error shows as publish failed and setdefault is not executed' )
168168
@@ -187,7 +187,7 @@ describe('invalid api:create', () => {
187187 )
188188 . command ( [ 'api:create' , validIdentifier , '-f=test/resources/valid_api.yaml' , '--published=publish' , '--setdefault' ] )
189189 . catch ( err => {
190- expect ( err . message ) . to . contains ( 'An error occurred. Setting default version failed' )
190+ expect ( err . message ) . to . contain ( 'An error occurred. Setting default version failed' )
191191 } )
192192 . it ( 'error shows as setdefault failed' )
193193} )
@@ -207,7 +207,7 @@ describe('valid api:create', () => {
207207 . stdout ( )
208208 . command ( [ 'api:create' , validIdentifier , '--file=test/resources/valid_api.yaml' ] )
209209 . it ( 'runs api:create with yaml file' , ctx => {
210- expect ( ctx . stdout ) . to . contains ( 'Created API \'org/api\'' )
210+ expect ( ctx . stdout ) . to . contain ( 'Created API \'org/api\'' )
211211 } )
212212
213213 test
@@ -228,7 +228,7 @@ describe('valid api:create', () => {
228228 . stdout ( )
229229 . command ( [ 'api:create' , validIdentifier , '--file=test/resources/valid_api.yaml' , '--setdefault' ] )
230230 . it ( 'runs api:create to set default version' , ctx => {
231- expect ( ctx . stdout ) . to . contains ( 'Created API \'org/api\'\nDefault version of org/api set to 1.0.0' )
231+ expect ( ctx . stdout ) . to . contain ( 'Created API \'org/api\'\nDefault version of org/api set to 1.0.0' )
232232 } )
233233
234234 test
@@ -249,7 +249,7 @@ describe('valid api:create', () => {
249249 . stdout ( )
250250 . command ( [ 'api:create' , validIdentifier , '--file=test/resources/valid_api.yaml' , '--published=publish' ] )
251251 . it ( 'runs api:create to publish API' , ctx => {
252- expect ( ctx . stdout ) . to . contains ( 'Created API \'org/api\'\nPublished API org/api/1.0.0' )
252+ expect ( ctx . stdout ) . to . contain ( 'Created API \'org/api\'\nPublished API org/api/1.0.0' )
253253 } )
254254
255255 test
@@ -331,7 +331,7 @@ describe('valid api:create', () => {
331331 '--visibility=public'
332332 ] )
333333 . it ( 'runs api:create with json file' , ctx => {
334- expect ( ctx . stdout ) . to . contains ( 'Created API \'org/api\'' )
334+ expect ( ctx . stdout ) . to . contain ( 'Created API \'org/api\'' )
335335 } )
336336
337337 test
@@ -353,7 +353,7 @@ describe('valid api:create', () => {
353353 '--visibility=public'
354354 ] )
355355 . it ( 'runs api:create with asyncapi json file' , ctx => {
356- expect ( ctx . stdout ) . to . contains ( 'Created API \'org/api\'' )
356+ expect ( ctx . stdout ) . to . contain ( 'Created API \'org/api\'' )
357357 } )
358358 test
359359 . stub ( config , 'getConfig' , stub => stub . returns ( { SWAGGERHUB_URL : shubUrl } ) )
@@ -374,7 +374,7 @@ describe('valid api:create', () => {
374374 '--visibility=public'
375375 ] )
376376 . it ( 'runs api:create with asyncapi yaml file' , ctx => {
377- expect ( ctx . stdout ) . to . contains ( 'Created API \'org/api\'' )
377+ expect ( ctx . stdout ) . to . contain ( 'Created API \'org/api\'' )
378378 } )
379379} )
380380
@@ -397,7 +397,7 @@ describe('valid create new version with api:create', () => {
397397 . stdout ( )
398398 . command ( [ 'api:create' , 'org/api' , '--file=test/resources/valid_api.yaml' ] )
399399 . it ( 'runs api:create with yaml file reading version from file' , ctx => {
400- expect ( ctx . stdout ) . to . contains ( 'Created version 1.0.1 of API \'org/api\'' )
400+ expect ( ctx . stdout ) . to . contain ( 'Created version 1.0.1 of API \'org/api\'' )
401401 } )
402402
403403 test
@@ -422,7 +422,7 @@ describe('valid create new version with api:create', () => {
422422 '--visibility=public'
423423 ] )
424424 . it ( 'runs api:create with json file reading version from file' , ctx => {
425- expect ( ctx . stdout ) . to . contains ( 'Created version 2.0.0 of API \'org/api\'' )
425+ expect ( ctx . stdout ) . to . contain ( 'Created version 2.0.0 of API \'org/api\'' )
426426 } )
427427} )
428428
0 commit comments