Skip to content

Commit 92550be

Browse files
committed
Update test after confirming a bug fix
1 parent 93a4835 commit 92550be

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

test/dbObject15.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

test/list.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4575,6 +4575,6 @@ oracledb.OUT_FORMAT_OBJECT and resultSet = true
45754575

45764576
214. 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()

0 commit comments

Comments
 (0)