File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -99,10 +99,18 @@ describe('214. dbObject15.js', () => {
9999
100100 it ( '214.2 Setter() - access collection element directly' , async ( ) => {
101101
102- // TypeError: 'set' on proxy: trap returned falsish for property '0'
103102 try {
104103 const substitute = { SHIRTNUMBER : 15 , NAME : 'Chris' } ;
105104 FrisbeeTeam [ 0 ] = substitute ;
105+ should . strictEqual ( FrisbeeTeam [ 0 ] . SHIRTNUMBER , substitute . SHIRTNUMBER ) ;
106+ should . strictEqual ( FrisbeeTeam [ 0 ] . NAME , substitute . NAME ) ;
107+
108+ // Verify that the other elements are not impacted
109+ for ( let i = 1 , element ; i < FrisbeePlayers . length ; i ++ ) {
110+ element = FrisbeeTeam [ i ] ;
111+ should . strictEqual ( element . SHIRTNUMBER , FrisbeePlayers [ i ] . SHIRTNUMBER ) ;
112+ should . strictEqual ( element . NAME , FrisbeePlayers [ i ] . NAME ) ;
113+ }
106114 } catch ( err ) {
107115 should . not . exist ( err ) ;
108116 }
Original file line number Diff line number Diff line change @@ -4575,6 +4575,6 @@ oracledb.OUT_FORMAT_OBJECT and resultSet = true
45754575
45764576214. dbObject15.js
45774577 214.1 Getter() - access collection elements directly
4578- - 214.2 Setter() - access collection element directly
4578+ 214.2 Setter() - access collection element directly
45794579 214.3 Negative - delete the collection element directly
45804580 214.4 Negative - collection.deleteElement()
You can’t perform that action at this time.
0 commit comments