Qunitjs | rejects function

Posted by Editorial Staff | Updated on | in Qunitjs.


The rejects() is a built-in function of Qunitjs test suite which test if the provided promise rejects, and optionally compare the rejection value. When testing code that is expected to return a rejected promise based …

Qunitjs | propEqual function

Posted by Editorial Staff | Updated on | in Qunitjs.


The propEqual() is a built-in function of Qunitjs test suite which compare the properties values of two objects. The propEqual() assertion provides strictly (===) comparison of Object properties. Unlike deepEqual(), this assertion can be used …

Qunitjs | pushResult function

Posted by Editorial Staff | Updated on | in Qunitjs.


The pushResult() is a built-in function of Qunitjs test suite which report the result of a custom assertion. Some test suites may need to express an expectation that is not defined by any of QUnit’s …

Qunitjs | notStrictEqual Function

Posted by Editorial Staff | Updated on | in Qunitjs.


The notDeepEqual() is a built-in function of Qunitjs test suite which validates the strict comparison, checking for inequality. The notStrictEqual assertion uses the strict inverted comparison operator (!==) to compare the actual and expected arguments. …

QUnitjs | JavaScript Unit Testing framework

Posted by Editorial Staff | Updated on | in Qunitjs.


What is QUnit? QUnit is a JavaScript unit testing framework. Originally developed for testing jQuery, jQuery UI and jQuery Mobile, it is a generic framework for testing any JavaScript code. It supports client-side environments in …

Qunitjs | notPropEqual Function

Posted by Editorial Staff | Updated on | in Qunitjs.


The notDeepEqual() is a built-in function of Qunitjs test suite which compare the values of two objects properties. The notPropEqual assertion uses the strict inverted comparison operator (!==) to compare the actual and expected arguments …

Qunitjs | notDeepEqual function

Posted by Editorial Staff | Updated on | in Qunitjs.


The notDeepEqual() is a built-in function of Qunitjs test suite. It is an inverted deep recursive comparison, working on primitive types, arrays, objects, regular expressions, dates and functions. The notDeepEqual() assertion can be used just …