@@ -237,28 +237,28 @@ describe("exchangeDownloader", () => {
237237 describe ( "getVersionByDeployment" , ( ) => {
238238 const scope = nock ( "https://anypoint.mulesoft.com/exchange/api/v1/assets" ) ;
239239
240- it ( "should return a version if no deployment is specified" , async ( ) => {
240+ it ( "should return the latest version if no deployment is specified" , async ( ) => {
241241 scope . get ( "/8888888/test-api" ) . reply ( 200 , getAssetWithoutVersion ) ;
242242
243243 return expect (
244244 getVersionByDeployment ( "AUTH_TOKEN" , REST_API )
245- ) . to . eventually . equal ( "0.0.7 " ) ;
245+ ) . to . eventually . equal ( "0.0.42 " ) ;
246246 } ) ;
247247
248- it ( "should return a version if a deployment exists" , async ( ) => {
248+ it ( "should return the latest version if a deployment exists" , async ( ) => {
249249 scope . get ( "/8888888/test-api" ) . reply ( 200 , getAssetWithoutVersion ) ;
250250
251251 return expect (
252252 getVersionByDeployment ( "AUTH_TOKEN" , REST_API , / p r o d u c t i o n / i)
253- ) . to . eventually . equal ( "0.0.7 " ) ;
253+ ) . to . eventually . equal ( "0.0.42 " ) ;
254254 } ) ;
255255
256- it ( "should return the base version if the deployment does not exist" , async ( ) => {
256+ it ( "should return the latest version if the deployment does not exist" , async ( ) => {
257257 scope . get ( "/8888888/test-api" ) . reply ( 200 , getAssetWithoutVersion ) ;
258258
259259 return expect (
260260 getVersionByDeployment ( "AUTH_TOKEN" , REST_API , / N O T A V A I L A B L E / i)
261- ) . to . eventually . equal ( getAssetWithoutVersion . version ) ;
261+ ) . to . eventually . equal ( "0.0.42" ) ;
262262 } ) ;
263263
264264 it ( "should return undefined if the asset does not exist" , async ( ) => {
@@ -343,7 +343,7 @@ describe("exchangeDownloader", () => {
343343 scope
344344 . get ( "/shop-products-categories-api-v1" )
345345 . reply ( 200 , getAssetWithVersion )
346- . get ( "/shop-products-categories-api-v1/0.0.1 " )
346+ . get ( "/shop-products-categories-api-v1/0.0.42 " )
347347 . reply ( 200 , getAssetWithVersion ) ;
348348
349349 return expect ( search ( "searchString" ) ) . to . eventually . deep . equal ( [
@@ -390,7 +390,7 @@ describe("exchangeDownloader", () => {
390390 asset . fatRaml = {
391391 classifier : "fat-raml" ,
392392 packaging : "zip" ,
393- externalLink : "https://short.url/raml.zip " ,
393+ externalLink : "https://short.url/test " ,
394394 createdDate : "2020-02-05T21:26:01.199Z" ,
395395 md5 : "87b3ad2b2aa17639b52f0cc83c5a8d40" ,
396396 sha1 : "f2b9b2de50b7250616e2eea8843735b57235c22b" ,
@@ -400,7 +400,7 @@ describe("exchangeDownloader", () => {
400400 scope
401401 . get ( "/shop-products-categories-api-v1" )
402402 . reply ( 200 , getAssetWithoutVersion )
403- . get ( "/shop-products-categories-api-v1/0.0.7 " )
403+ . get ( "/shop-products-categories-api-v1/0.0.42 " )
404404 . reply ( 200 , getAssetWithoutVersion ) ;
405405
406406 return expect ( search ( "searchString" ) ) . to . eventually . deep . equal ( [ asset ] ) ;
0 commit comments