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', () => {
99
99
100
100
it ( '214.2 Setter() - access collection element directly' , async ( ) => {
101
101
102
- // TypeError: 'set' on proxy: trap returned falsish for property '0'
103
102
try {
104
103
const substitute = { SHIRTNUMBER : 15 , NAME : 'Chris' } ;
105
104
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
+ }
106
114
} catch ( err ) {
107
115
should . not . exist ( err ) ;
108
116
}
Original file line number Diff line number Diff line change @@ -4575,6 +4575,6 @@ oracledb.OUT_FORMAT_OBJECT and resultSet = true
4575
4575
4576
4576
214. dbObject15.js
4577
4577
214.1 Getter() - access collection elements directly
4578
- - 214.2 Setter() - access collection element directly
4578
+ 214.2 Setter() - access collection element directly
4579
4579
214.3 Negative - delete the collection element directly
4580
4580
214.4 Negative - collection.deleteElement()
You can’t perform that action at this time.
0 commit comments