@@ -239,7 +239,7 @@ describe('GhostAdminAPI general', function () {
239
239
await api . config . read ( ) ;
240
240
241
241
makeRequestStub . calledOnce . should . be . true ( ) ;
242
- should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . headers [ 'Accept-Version' ] , 'v5 .0' ) ;
242
+ should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . headers [ 'Accept-Version' ] , 'v6 .0' ) ;
243
243
should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . headers [ 'User-Agent' ] , `GhostAdminSDK/${ packageVersion } ` ) ;
244
244
should . equal ( generateTokenSpy . args [ 0 ] [ 0 ] , '5c73def7a21ad85eda5d4faa:d9a3e5b2d6c2a4afb094655c4dc543220be60b3561fa9622e3891213cb4357d0' ) ;
245
245
should . equal ( generateTokenSpy . args [ 0 ] [ 1 ] , '/canary/admin/' ) ;
@@ -285,7 +285,7 @@ describe('GhostAdminAPI general', function () {
285
285
await api . config . read ( ) ;
286
286
287
287
makeRequestStub . calledOnce . should . be . true ( ) ;
288
- should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . headers [ 'Accept-Version' ] , 'v5 .0' ) ;
288
+ should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . headers [ 'Accept-Version' ] , 'v6 .0' ) ;
289
289
should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . headers [ 'User-Agent' ] , `GhostAdminSDK/${ packageVersion } ` ) ;
290
290
should . equal ( generateTokenSpy . args [ 0 ] [ 0 ] , '5c73def7a21ad85eda5d4faa:d9a3e5b2d6c2a4afb094655c4dc543220be60b3561fa9622e3891213cb4357d0' ) ;
291
291
should . equal ( generateTokenSpy . args [ 0 ] [ 1 ] , '/admin/' ) ;
@@ -309,7 +309,7 @@ describe('GhostAdminAPI general', function () {
309
309
await api . config . read ( ) ;
310
310
311
311
makeRequestStub . calledOnce . should . be . true ( ) ;
312
- should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . headers [ 'Accept-Version' ] , 'v5 .0' ) ;
312
+ should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . headers [ 'Accept-Version' ] , 'v6 .0' ) ;
313
313
should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . headers [ 'User-Agent' ] , undefined ) ;
314
314
should . equal ( generateTokenSpy . args [ 0 ] [ 0 ] , '5c73def7a21ad85eda5d4faa:d9a3e5b2d6c2a4afb094655c4dc543220be60b3561fa9622e3891213cb4357d0' ) ;
315
315
should . equal ( generateTokenSpy . args [ 0 ] [ 1 ] , '/admin/' ) ;
@@ -333,7 +333,7 @@ describe('GhostAdminAPI general', function () {
333
333
await api . config . read ( ) ;
334
334
335
335
makeRequestStub . calledOnce . should . be . true ( ) ;
336
- should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . headers [ 'Accept-Version' ] , 'v5 .0' ) ;
336
+ should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . headers [ 'Accept-Version' ] , 'v6 .0' ) ;
337
337
should . equal ( makeRequestStub . args [ 0 ] [ 0 ] . headers [ 'User-Agent' ] , 'Custom Value' ) ;
338
338
should . equal ( generateTokenSpy . args [ 0 ] [ 0 ] , '5c73def7a21ad85eda5d4faa:d9a3e5b2d6c2a4afb094655c4dc543220be60b3561fa9622e3891213cb4357d0' ) ;
339
339
should . equal ( generateTokenSpy . args [ 0 ] [ 1 ] , '/admin/' ) ;
0 commit comments