Support for expected and actual parameters in assert-style error object

This commit is contained in:
Jakub Nešetřil 2012-04-05 13:42:52 +03:00
parent de82d4f344
commit d4f1175e55

View file

@ -102,7 +102,10 @@ module.exports = function (chai) {
test.assert(
exp == test.obj
, 'expected ' + test.inspect + ' to equal ' + inspect(exp)
, 'expected ' + test.inspect + ' to not equal ' + inspect(exp));
, 'expected ' + test.inspect + ' to not equal ' + inspect(exp)
, exp
, act
);
};
/**
@ -125,7 +128,10 @@ module.exports = function (chai) {
test.assert(
exp != test.obj
, 'expected ' + test.inspect + ' to equal ' + inspect(exp)
, 'expected ' + test.inspect + ' to not equal ' + inspect(exp));
, 'expected ' + test.inspect + ' to not equal ' + inspect(exp)
, exp
, act
);
};
/**