- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Mayank Agarwal has Published 410 Articles
Mayank Agarwal
223 Views
The above method creates a DiffieHellman key exchange object with the help of the supplied prime value and an optional specific generator. The generator argument can hold either a string, number or Buffer value. Default value for generator is 2.Syntaxcrypto.createDiffieHelmmanGroup(prime, [primeEncoding], [generator], [generatorEncoding]ParametersThe above parameters are described as below −prime – ... Read More
Mayank Agarwal
216 Views
The assert module provides a bunch of different functionalities that are used for function assertion. assert.strictEqual is used to check the equality between two objects or parameters. It will throw an assertion error if both the objects are not equal.Syntaxassert.strictEqual(actual, expected[, message])ParametersThe above parameters are described as below −actual – This ... Read More
Mayank Agarwal
332 Views
The assert module provides a bunch of different functionalities that are used for function assertion. The assert.rejects function will wait for the passed async function 'asyncfn' promise. If asyncfn is a function, it will immediately call this function and will wait for its returned promise to complete. It will then ... Read More
Mayank Agarwal
286 Views
The assert module provides a bunch of different functionalities that are used for function assertion. The assert.ok tests whether the values are true or not. It will throw an assertion error if the value is not true.Syntaxassert.ok(value, [message])ParametersThe above parameters are described as below −value – This parameter takes the value ... Read More
Mayank Agarwal
103 Views
The assert module provides a bunch of different functionalities that are used for function assertion. The assert.notEqual tests that two objects should not be equal. An assertion error is thrown if both the objects are equal.Syntaxassert.notEqual (actual, expected, [message])ParametersThe above parameters are described as below −actual – This parameter contains the ... Read More
Mayank Agarwal
60 Views
The assert module provides a bunch of different functionalities that are used for function assertion. The assert.notDeepStrictEqual tests that two objects should not be deep strict equal. An assertion error is thrown if both the objects are strictly equal.Syntaxassert.notDeepStrictEqual(actual, expected, [message])ParametersThe above parameters are described as below −actual – This parameter ... Read More
Mayank Agarwal
54 Views
The assert module provides a bunch of different functionalities that are used for function assertion. The Assert.notDeepEqual() checks inequality between the actual and expected paramters. Also the parameters should not be deep equal. An error will be thrown if the condition is not fulfilled.Syntaxassert.notDeepEqual(actual, expected[, message])ParametersThe above parameters are described ... Read More
Mayank Agarwal
216 Views
The assert module provides a bunch of different functionalities that are used for function assertion. Assert.ifError() function provides a functionality to throw an error if the value is not null or undefined. An error will be thrown if the value is not two of them.Syntaxassert.ifError(value)ParametersThe above parameters are described as below ... Read More
Mayank Agarwal
760 Views
The assert module provides a bunch of different functionalities that are used for function assertion. The Assert.fail() throws an assertion error without checking anything. The error produced is either a default message or message passed in the function.Syntaxassert.fail(message)ParametersThe above parameters are described as below −message – This is an optional parameter. ... Read More
Mayank Agarwal
337 Views
The assert module provides a bunch of different functionalities that are used for function assertion. Assert.equal() function is one of them. This function is used to test the equality between the actual and expected parameters. An assertion error will be raised if the condition is not fulfilled.Syntaxassert.equal(actual, expected[, message])ParametersThe above ... Read More
To Continue Learning Please Login
Login with Google