karma-jasmine-diff-reporter
Version:
Diff and pretty print for failed tests
13 lines (11 loc) • 390 B
JavaScript
;
// Matcher - toHaveBeenCalledWith
//
// Behaves like toEqual, deep compare results as arrays
// There is also the case when Jasmine outputs arguments for all
// calls in multiple arrays.
module.exports = function formatToHaveBeenCalled(
diff, expectedValue, actualValue, highlighter, options
) {
return diff.multiple(expectedValue, actualValue, highlighter, options);
};