@@ -438,15 +438,13 @@ describe('Url', function () {
438438            urlService . utils . urlFor ( 'admin' ,  true ) . should . equal ( 'http://something.com/blog/ghost/' ) ; 
439439        } ) ; 
440440
441-         [ 'deprecated'  ,   'active' ,   ' v0.1',  'v2' ] . forEach ( ( apiVersion )  =>  { 
441+         [ 'v0.1' ,  'v2' ] . forEach ( ( apiVersion )  =>  { 
442442            function  getApiPath ( options )  { 
443443                const  baseAPIPath  =  '/ghost/api/' ; 
444444
445445                switch  ( options . version )  { 
446-                     case  'deprecated' :
447446                    case  'v0.1' :
448447                        return  `${ baseAPIPath }  ; 
449-                     case  'active' :
450448                    case  'v2' :
451449                        if  ( options . versionType  ===  'admin' )  { 
452450                            return  `${ baseAPIPath }  ; 
@@ -601,15 +599,15 @@ describe('Url', function () {
601599                url : 'https://my-ghost-blog.com' 
602600            } ) ; 
603601
604-             urlService . utils . urlFor ( 'api' ,  { cors : true ,  version : "active " ,  versionType : 'content' } ,  true ) . should . eql ( 'https://my-ghost-blog.com/ghost/api/v2/content/' ) ; 
602+             urlService . utils . urlFor ( 'api' ,  { cors : true ,  version : "v2 " ,  versionType : 'content' } ,  true ) . should . eql ( 'https://my-ghost-blog.com/ghost/api/v2/content/' ) ; 
605603        } ) ; 
606604
607605        it ( 'api: with active version and admin true, blog url is https: should return active admin api path' ,  function  ( )  { 
608606            configUtils . set ( { 
609607                url : 'https://my-ghost-blog.com' 
610608            } ) ; 
611609
612-             urlService . utils . urlFor ( 'api' ,  { cors : true ,  version : "active " ,  versionType : 'admin' } ,  true ) . should . eql ( 'https://my-ghost-blog.com/ghost/api/v2/admin/' ) ; 
610+             urlService . utils . urlFor ( 'api' ,  { cors : true ,  version : "v2 " ,  versionType : 'admin' } ,  true ) . should . eql ( 'https://my-ghost-blog.com/ghost/api/v2/admin/' ) ; 
613611        } ) ; 
614612    } ) ; 
615613
0 commit comments