@@ -377,13 +377,14 @@ describe('Request', () => {
377377
378378 it ( 'should emit an error from results decoding' , done => {
379379 const largeInt = '922337203685477850' ;
380+ const propertyName = 'points' ;
380381 request . request_ = ( config : RequestConfig , callback : Function ) => {
381382 callback ( null , {
382383 found : [
383384 {
384385 entity : {
385386 properties : {
386- points : {
387+ [ propertyName ] : {
387388 integerValue : largeInt ,
388389 valueType : 'integerValue' ,
389390 } ,
@@ -401,7 +402,7 @@ describe('Request', () => {
401402 . on ( 'error' , ( err : Error ) => {
402403 assert . deepStrictEqual (
403404 err ,
404- outOfBoundsError ( { integerValue : largeInt } )
405+ outOfBoundsError ( { integerValue : largeInt , propertyName } )
405406 ) ;
406407 setImmediate ( ( ) => {
407408 assert . strictEqual ( stream . destroyed , true ) ;
@@ -990,6 +991,7 @@ describe('Request', () => {
990991
991992 it ( 'should emit an error from results decoding' , done => {
992993 const largeInt = '922337203685477850' ;
994+ const propertyName = 'points' ;
993995 sandbox . stub ( entity , 'queryToQueryProto' ) ;
994996
995997 request . request_ = ( config : RequestConfig , callback : Function ) => {
@@ -999,7 +1001,7 @@ describe('Request', () => {
9991001 {
10001002 entity : {
10011003 properties : {
1002- points : {
1004+ [ propertyName ] : {
10031005 integerValue : largeInt ,
10041006 valueType : 'integerValue' ,
10051007 } ,
@@ -1017,7 +1019,7 @@ describe('Request', () => {
10171019 . on ( 'error' , ( err : Error ) => {
10181020 assert . deepStrictEqual (
10191021 err ,
1020- outOfBoundsError ( { integerValue : largeInt } )
1022+ outOfBoundsError ( { integerValue : largeInt , propertyName } )
10211023 ) ;
10221024 setImmediate ( ( ) => {
10231025 assert . strictEqual ( stream . destroyed , true ) ;
0 commit comments