Skip to content

Commit aaf2a74

Browse files
committed
Add more tests for sodaCollection
1 parent f0d9f4a commit aaf2a74

File tree

3 files changed

+528
-3
lines changed

3 files changed

+528
-3
lines changed

test/list.txt

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4180,7 +4180,7 @@ Overview of node-oracledb functional tests
41804180
165. soda2.js
41814181
165.1 create two sodaDatabase objects which point to the same instance
41824182
165.2 create two sodaDatabase objects from two connections
4183-
165.3 creating a collection with the existing name will open this collection
4183+
165.3 will open this collection when creating a collection with the existing name
41844184
165.4 create collection with metadata
41854185
165.5 Negative - create collection with an invalid metadata
41864186
165.6 throw error when creating collection with the existing name and different metadata
@@ -4241,4 +4241,16 @@ Overview of node-oracledb functional tests
42414241
171.3 data bind
42424242

42434243
172. executeMany2.js
4244-
172.1 Negative - incorrect parameters
4244+
172.1 Negative - incorrect parameters
4245+
4246+
173. soda5.js
4247+
173.1 create index, basic case
4248+
173.2 query row not via indexSpec
4249+
173.3 Negative - invalid indexSpec, invalid index property
4250+
173.4 Negative - createIndex() without parameter
4251+
173.5 collection.drop(), basic case
4252+
173.6 drop multiple times, no error thrown
4253+
173.7 dropIndex(), basic case
4254+
173.8 dropping index does not impact query
4255+
173.9 The index is dropped regardless of the auto commit mode
4256+
173.10 Negative - dropIndex() no parameter

test/soda2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ describe('165. soda2.js', () => {
103103
}
104104
}); // 165.2
105105

106-
it('165.3 creating a collection with the existing name will open this collection', async () => {
106+
it('165.3 will open this collection when creating a collection with the existing name', async () => {
107107
let conn;
108108
try {
109109
conn = await oracledb.getConnection(dbconfig);

0 commit comments

Comments
 (0)