Added strictEqual to client-side assertions
parent
462671cfba
commit
969687e770
|
@ -39,6 +39,15 @@ function failAssertion( err )
|
|||
*/
|
||||
module.assert = { exports: {
|
||||
equal: function ( val, cmp, err )
|
||||
{
|
||||
if ( val != cmp )
|
||||
{
|
||||
failAssertion( err );
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
strictEqual: function( val, cmp, err )
|
||||
{
|
||||
if ( val !== cmp )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue