@@ -92,6 +92,7 @@ describe('apilyticsMiddleware()', () => {
9292 expect ( APILYTICS_VERSION ) . toBeTruthy ( ) ;
9393 expect ( process . versions . node ) . toBeTruthy ( ) ;
9494 expect ( EXPRESS_VERSION ) . toBeTruthy ( ) ;
95+ expect ( process . platform ) . toBeTruthy ( ) ;
9596
9697 expect ( requestSpy ) . toHaveBeenLastCalledWith ( {
9798 hostname : 'www.apilytics.io' ,
@@ -102,7 +103,7 @@ describe('apilyticsMiddleware()', () => {
102103 'Content-Type' : 'application/json' ,
103104 'Content-Length' : expect . any ( Number ) ,
104105 'X-API-Key' : apiKey ,
105- 'Apilytics-Version' : `apilytics-node-express/${ APILYTICS_VERSION } ;node/${ process . versions . node } ;express/${ EXPRESS_VERSION } ` ,
106+ 'Apilytics-Version' : `apilytics-node-express/${ APILYTICS_VERSION } ;node/${ process . versions . node } ;express/${ EXPRESS_VERSION } ; ${ process . platform } ` ,
106107 } ,
107108 } ) ;
108109
@@ -142,7 +143,7 @@ describe('apilyticsMiddleware()', () => {
142143 'Content-Type' : 'application/json' ,
143144 'Content-Length' : expect . any ( Number ) ,
144145 'X-API-Key' : apiKey ,
145- 'Apilytics-Version' : `apilytics-node-express/${ APILYTICS_VERSION } ;node/${ process . versions . node } ;express/${ EXPRESS_VERSION } ` ,
146+ 'Apilytics-Version' : `apilytics-node-express/${ APILYTICS_VERSION } ;node/${ process . versions . node } ;express/${ EXPRESS_VERSION } ; ${ process . platform } ` ,
146147 } ,
147148 } ) ;
148149
@@ -275,7 +276,7 @@ describe('apilyticsMiddleware()', () => {
275276 expect ( requestSpy ) . toHaveBeenLastCalledWith (
276277 expect . objectContaining ( {
277278 headers : expect . objectContaining ( {
278- 'Apilytics-Version' : `apilytics-node-express/${ APILYTICS_VERSION } ;node/${ process . versions . node } ` ,
279+ 'Apilytics-Version' : `apilytics-node-express/${ APILYTICS_VERSION } ;node/${ process . versions . node } ;; ${ process . platform } ` ,
279280 } ) ,
280281 } ) ,
281282 ) ;
0 commit comments