import { IDeliveryNetworkResponse , Responses } from '../../../../../lib' ; import { Context , Movie , setup } from '../../../setup' ; import { getDeliveryClientWithJsonAndHeaders } from '../../../setup' ; import * as responseJson from './items-feed.spec.json' ; describe ( 'Items feed' , ( ) => { const context = new Context ( ) ; setup ( context ) ; let response ; beforeAll ( async ( ) => { response = await getDeliveryClientWithJsonAndHeaders ( responseJson , { projectId : 'x' , } , [ { value : 'TokenX' , header : 'X-Continuation' } ] ) . itemsFeed < Movie > ( ) . toPromise ( ) ; } ) ; it ( `Continuation token should be set` , ( ) => { expect ( response . xContinuationToken ) . toEqual ( 'TokenX' ) ; } ) ; } ) ;