@@ -41,7 +41,10 @@ describe('Stack tests', () => {
4141
4242 test ( 'Stack initialization with fetchOptions test' , done => {
4343 const stack = Contentstack . Stack ( { api_key : 'api_key' , delivery_token : 'delivery_token' , environment : 'environment' , fetchOptions :{
44- timeout : 2000
44+ timeout : 2000 ,
45+ logHandler : ( ) => {
46+
47+ }
4548 } } ) ;
4649 expect ( stack . cachePolicy ) . toEqual ( Contentstack . CachePolicy . IGNORE_CACHE ) ;
4750 expect ( stack . environment ) . toEqual ( 'environment' ) ;
@@ -79,7 +82,10 @@ describe('Stack tests', () => {
7982 fetchOptions :{
8083 timeout : 2000 ,
8184 retryLimit : 4 ,
82- retryDelay : 40
85+ retryDelay : 40 ,
86+ logHandler : ( ) => {
87+
88+ }
8389 }
8490 } ;
8591 const stack = Contentstack . Stack ( config ) ;
@@ -104,7 +110,10 @@ describe('Stack tests', () => {
104110 fetchOptions :{
105111 timeout : 2000 ,
106112 retryLimit : 4 ,
107- retryDelay : 40
113+ retryDelay : 40 ,
114+ logHandler : ( ) => {
115+
116+ }
108117 }
109118 } ;
110119 const stack = Contentstack . Stack ( config ) ;
@@ -139,7 +148,10 @@ describe('Stack tests', () => {
139148 fetchOptions :{
140149 timeout : 2000 ,
141150 retryLimit : 4 ,
142- retryDelay : 40
151+ retryDelay : 40 ,
152+ logHandler : ( ) => {
153+
154+ }
143155 }
144156 } ;
145157 const stack = Contentstack . Stack ( config ) ;
@@ -167,7 +179,10 @@ describe('Stack tests', () => {
167179
168180 test ( 'Stack initialization with region EU and fetchOptions test' , done => {
169181 const stack = Contentstack . Stack ( 'api_key' , 'delivery_token' , 'environment' , Contentstack . Region . EU , {
170- timeout : 2000
182+ timeout : 2000 ,
183+ logHandler : ( ) => {
184+
185+ }
171186 } ) ;
172187 expect ( stack . cachePolicy ) . toEqual ( Contentstack . CachePolicy . IGNORE_CACHE ) ;
173188 expect ( stack . environment ) . toEqual ( 'environment' ) ;
0 commit comments