@@ -147,7 +147,7 @@ describe('283. aq7.js', function() {
147
147
assert . equal ( msgs [ 2 ] . payload . empId , 103 ) ;
148
148
} ) ;
149
149
150
- it ( '283.3 Map javascript object directly into JSON' , async ( ) => {
150
+ it ( '283.3 Map Javascript object directly into JSON' , async ( ) => {
151
151
const queue = await conn . getQueue ( objQueueName ,
152
152
{ payloadType : oracledb . DB_TYPE_JSON }
153
153
) ;
@@ -171,7 +171,7 @@ describe('283. aq7.js', function() {
171
171
assert . equal ( msg . payload . empCity , "City" ) ;
172
172
} ) ;
173
173
174
- it ( '283.4 Boolean and null value' , async function ( ) {
174
+ it ( '283.4 Null and Boolean value in JSON ' , async function ( ) {
175
175
const queue = await conn . getQueue ( objQueueName ,
176
176
{ payloadType : oracledb . DB_TYPE_JSON }
177
177
) ;
@@ -195,7 +195,7 @@ describe('283. aq7.js', function() {
195
195
assert . equal ( msg . payload . empCity , true ) ;
196
196
} ) ;
197
197
198
- it ( '283.5 enqOne and deqOne Json val as array type' , async function ( ) {
198
+ it ( '283.5 enqOne and deqOne JSON val as array type' , async function ( ) {
199
199
const queue = await conn . getQueue ( objQueueName ,
200
200
{ payloadType : oracledb . DB_TYPE_JSON }
201
201
) ;
@@ -210,10 +210,10 @@ describe('283. aq7.js', function() {
210
210
{ payloadType : oracledb . DB_TYPE_JSON } ) ;
211
211
const msg = await queue2 . deqOne ( ) ;
212
212
await conn . commit ( ) ;
213
- assert . deepEqual ( msg . payload . employees , [ "Employee1" , "Employee2" , "Employee3" ] ) ;
213
+ assert . deepStrictEqual ( msg . payload . employees , [ "Employee1" , "Employee2" , "Employee3" ] ) ;
214
214
} ) ;
215
215
216
- it ( '283.6 enqMany() with Json val as array type' , async function ( ) {
216
+ it ( '283.6 enqMany and deqMany with JSON val as array type' , async function ( ) {
217
217
const queue3 = await conn . getQueue ( objQueueName ,
218
218
{ payloadType : oracledb . DB_TYPE_JSON } ) ;
219
219
@@ -237,12 +237,12 @@ describe('283. aq7.js', function() {
237
237
238
238
const msgs = await queue4 . deqMany ( 3 ) ; // get at most 3 messages
239
239
240
- assert . deepEqual ( msgs [ 0 ] . payload . empName1 , [ "Employee #1" , 101 ] ) ;
241
- assert . deepEqual ( msgs [ 1 ] . payload . empName2 , [ "Employee #2" , 102 ] ) ;
242
- assert . deepEqual ( msgs [ 2 ] . payload . empName3 , [ "Employee #3" , 103 ] ) ;
240
+ assert . deepStrictEqual ( msgs [ 0 ] . payload . empName1 , [ "Employee #1" , 101 ] ) ;
241
+ assert . deepStrictEqual ( msgs [ 1 ] . payload . empName2 , [ "Employee #2" , 102 ] ) ;
242
+ assert . deepStrictEqual ( msgs [ 2 ] . payload . empName3 , [ "Employee #3" , 103 ] ) ;
243
243
} ) ;
244
244
245
- it ( '283.7 enqOne and deqOne Json val as object type' , async function ( ) {
245
+ it ( '283.7 enqOne and deqOne JSON val as object type' , async function ( ) {
246
246
const queue = await conn . getQueue ( objQueueName ,
247
247
{ payloadType : oracledb . DB_TYPE_JSON }
248
248
) ;
@@ -257,10 +257,10 @@ describe('283. aq7.js', function() {
257
257
{ payloadType : oracledb . DB_TYPE_JSON } ) ;
258
258
const msg = await queue2 . deqOne ( ) ;
259
259
await conn . commit ( ) ;
260
- assert . deepEqual ( msg . payload . employee , { "name" :"Employee1" , "age" :30 , "city" :"New City" } ) ;
260
+ assert . deepStrictEqual ( msg . payload . employee , { "name" :"Employee1" , "age" :30 , "city" :"New City" } ) ;
261
261
} ) ;
262
262
263
- it ( '283.8 enqMany() with Json val as object type' , async function ( ) {
263
+ it ( '283.8 enqMany and deqMany with JSON val as object type' , async function ( ) {
264
264
const queue3 = await conn . getQueue ( objQueueName ,
265
265
{ payloadType : oracledb . DB_TYPE_JSON } ) ;
266
266
@@ -284,9 +284,9 @@ describe('283. aq7.js', function() {
284
284
285
285
const msgs = await queue4 . deqMany ( 3 ) ; // get at most 3 messages
286
286
287
- assert . deepEqual ( msgs [ 0 ] . payload . empDetails1 , { "name" :"Employee1" , "age" :24 , "city" :"New City" } ) ;
288
- assert . deepEqual ( msgs [ 1 ] . payload . empDetails2 , { "name" :"Employee2" , "age" :30 , "city" :"New York" } ) ;
289
- assert . deepEqual ( msgs [ 2 ] . payload . empDetails3 , { "name" :"Employee3" , "age" :28 , "city" :"New Land" } ) ;
287
+ assert . deepStrictEqual ( msgs [ 0 ] . payload . empDetails1 , { "name" :"Employee1" , "age" :24 , "city" :"New City" } ) ;
288
+ assert . deepStrictEqual ( msgs [ 1 ] . payload . empDetails2 , { "name" :"Employee2" , "age" :30 , "city" :"New York" } ) ;
289
+ assert . deepStrictEqual ( msgs [ 2 ] . payload . empDetails3 , { "name" :"Employee3" , "age" :28 , "city" :"New Land" } ) ;
290
290
} ) ;
291
291
292
292
it ( '283.9 enqOne and deqOne CLOB value into a JSON key ' , async function ( ) {
@@ -311,6 +311,6 @@ describe('283. aq7.js', function() {
311
311
const msg = await queue2 . deqOne ( ) ;
312
312
await conn . commit ( ) ;
313
313
314
- assert . deepEqual ( msg . payload , jsonDoc ) ;
314
+ assert . deepStrictEqual ( msg . payload , jsonDoc ) ;
315
315
} ) ;
316
316
} ) ;
0 commit comments