Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

AssertionError [ERR_ASSERTION]: Expected values to be loosely deep-equal:

// Requiring the module
const assert = require('assert').strict;
     
// Function call
try {
    assert.deepEqual({ a: '5' }, { a: '5' });
    console.log("No Error Occured")
} catch(error) {
    console.log("Error: ", error)
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #AssertionError #Expected #values #loosely
ADD COMMENT
Topic
Name
4+6 =