mirror of
https://github.com/chaijs/chai
synced 2024-11-15 08:17:14 +00:00
Support for expected and actual parameters in assert-style error object
This commit is contained in:
parent
de82d4f344
commit
d4f1175e55
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue