strictEqual()


strictEqual( actual, expected, message )

Description: A strict type and value comparison.

The strictEqual() assertion provides the most rigid comparison of type and value with the strict equality operator (===).

equal() can be used to test non-strict equality.

notStrictEqual() can be used to explicitly test strict inequality.

Example:

Compare the value of two primitives, having the same value and type.

1
2
3
QUnit.test( "strictEqual test", function( assert ) {
assert.strictEqual( 1, 1, "1 and 1 have the same value and type" );
});