11/* eslint-disable no-useless-escape */
22const { NodeVM } = require ( 'vm2' ) ;
33const chai = require ( 'chai' ) ;
4+ const { status } = require ( '@grpc/grpc-js' ) ;
45
56const testHttpController = { } ;
67
@@ -12,6 +13,13 @@ testHttpController.runTest = (
1213) => {
1314 const { request } = reqResObj ;
1415 let { response } = reqResObj ;
16+
17+ console . log ( 'this is response in backend' , response ) ;
18+ console . log ( 'HSOULD BE HEADERS' , response . headers ) ;
19+ console . log ( 'is status acessable' , response . status ) ;
20+ console . log ( 'TRYING WITH BRackets' , response . headers [ ':status' ] ) ;
21+ // console.log('TRYING WITH just colon', response.headers:status);
22+
1523 // final test result objects will be stored in this array
1624 const testResults = [ ] ;
1725
@@ -70,9 +78,9 @@ testHttpController.runTest = (
7078
7179 addOneResult({
7280 message: errObj.message,
73- status: 'FAIL ',
81+ status: 'FAILhi ',
7482 expected: errObj.expected,
75- actual: errObj.actual ,
83+ actual: err ,
7684 });
7785 }
7886 ` ;
@@ -90,6 +98,7 @@ testHttpController.runTest = (
9098 vm . run ( testScript , 'main.js' ) ;
9199 // deep clone the testResults array since sending functions, DOM elements, and non-cloneable
92100 // JS objects is not supported IPC channels past Electron 9
101+ // console.log('this is test results from back end', testResults);
93102 return JSON . parse ( JSON . stringify ( testResults ) ) ;
94103 } catch ( err ) {
95104 console . log (
0 commit comments