@@ -11,7 +11,7 @@ const packageVersion = packageJSON.version;
11
11
describe ( 'GhostContentApi' , function ( ) {
12
12
const config = {
13
13
url : 'https://ghost.local' ,
14
- version : 'v2 ' ,
14
+ version : 'v5.0 ' ,
15
15
key : '0123456789abcdef0123456789'
16
16
} ;
17
17
@@ -50,7 +50,6 @@ describe('GhostContentApi', function () {
50
50
} ) ;
51
51
52
52
it ( 'Returns an "api" object with posts, tags, authors, pages, settings, and tiers properties' , function ( ) {
53
- config . version = 'v5.0' ;
54
53
const api = new GhostContentApi ( config ) ;
55
54
56
55
should . exist ( api . posts ) ;
@@ -106,7 +105,7 @@ describe('GhostContentApi', function () {
106
105
107
106
makeRequestStub . calledOnce . should . be . true ( ) ;
108
107
should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . url , 'http://ghost.local/ghost/api/canary/content/settings/' ) ;
109
- should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . headers [ 'Accept-Version' ] , 'v4 .0' ) ;
108
+ should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . headers [ 'Accept-Version' ] , 'v5 .0' ) ;
110
109
should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . headers [ 'User-Agent' ] , `GhostContentSDK/${ packageVersion } ` ) ;
111
110
} ) ;
112
111
@@ -215,7 +214,7 @@ describe('GhostContentApi', function () {
215
214
await api . settings . browse ( ) ;
216
215
217
216
makeRequestStub . calledOnce . should . be . true ( ) ;
218
- should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . headers [ 'Accept-Version' ] , 'v4 .0' ) ;
217
+ should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . headers [ 'Accept-Version' ] , 'v5 .0' ) ;
219
218
should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . headers [ 'User-Agent' ] , `GhostContentSDK/${ packageVersion } ` ) ;
220
219
} ) ;
221
220
} ) ;
0 commit comments