@@ -147,7 +147,7 @@ describe('283. aq7.js', function() {
147147 assert . equal ( msgs [ 2 ] . payload . empId , 103 ) ;
148148 } ) ;
149149
150- it ( '283.3 Map javascript object directly into JSON' , async ( ) => {
150+ it ( '283.3 Map Javascript object directly into JSON' , async ( ) => {
151151 const queue = await conn . getQueue ( objQueueName ,
152152 { payloadType : oracledb . DB_TYPE_JSON }
153153 ) ;
@@ -171,7 +171,7 @@ describe('283. aq7.js', function() {
171171 assert . equal ( msg . payload . empCity , "City" ) ;
172172 } ) ;
173173
174- it ( '283.4 Boolean and null value' , async function ( ) {
174+ it ( '283.4 Null and Boolean value in JSON ' , async function ( ) {
175175 const queue = await conn . getQueue ( objQueueName ,
176176 { payloadType : oracledb . DB_TYPE_JSON }
177177 ) ;
@@ -195,7 +195,7 @@ describe('283. aq7.js', function() {
195195 assert . equal ( msg . payload . empCity , true ) ;
196196 } ) ;
197197
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 ( ) {
199199 const queue = await conn . getQueue ( objQueueName ,
200200 { payloadType : oracledb . DB_TYPE_JSON }
201201 ) ;
@@ -210,10 +210,10 @@ describe('283. aq7.js', function() {
210210 { payloadType : oracledb . DB_TYPE_JSON } ) ;
211211 const msg = await queue2 . deqOne ( ) ;
212212 await conn . commit ( ) ;
213- assert . deepEqual ( msg . payload . employees , [ "Employee1" , "Employee2" , "Employee3" ] ) ;
213+ assert . deepStrictEqual ( msg . payload . employees , [ "Employee1" , "Employee2" , "Employee3" ] ) ;
214214 } ) ;
215215
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 ( ) {
217217 const queue3 = await conn . getQueue ( objQueueName ,
218218 { payloadType : oracledb . DB_TYPE_JSON } ) ;
219219
@@ -237,12 +237,12 @@ describe('283. aq7.js', function() {
237237
238238 const msgs = await queue4 . deqMany ( 3 ) ; // get at most 3 messages
239239
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 ] ) ;
243243 } ) ;
244244
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 ( ) {
246246 const queue = await conn . getQueue ( objQueueName ,
247247 { payloadType : oracledb . DB_TYPE_JSON }
248248 ) ;
@@ -257,10 +257,10 @@ describe('283. aq7.js', function() {
257257 { payloadType : oracledb . DB_TYPE_JSON } ) ;
258258 const msg = await queue2 . deqOne ( ) ;
259259 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" } ) ;
261261 } ) ;
262262
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 ( ) {
264264 const queue3 = await conn . getQueue ( objQueueName ,
265265 { payloadType : oracledb . DB_TYPE_JSON } ) ;
266266
@@ -284,9 +284,9 @@ describe('283. aq7.js', function() {
284284
285285 const msgs = await queue4 . deqMany ( 3 ) ; // get at most 3 messages
286286
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" } ) ;
290290 } ) ;
291291
292292 it ( '283.9 enqOne and deqOne CLOB value into a JSON key ' , async function ( ) {
@@ -311,6 +311,6 @@ describe('283. aq7.js', function() {
311311 const msg = await queue2 . deqOne ( ) ;
312312 await conn . commit ( ) ;
313313
314- assert . deepEqual ( msg . payload , jsonDoc ) ;
314+ assert . deepStrictEqual ( msg . payload , jsonDoc ) ;
315315 } ) ;
316316} ) ;
0 commit comments