karma-jasmine-diff-reporter
Version:
Diff and pretty print for failed tests
14 lines (11 loc) • 338 B
JavaScript
;
module.exports = function diffWarning(
expectedValue, actualValue, highlighter, options
) {
return {
expected: expectedValue.indent(options) +
highlighter.warning(expectedValue.out(options)),
actual: actualValue.indent(options) +
highlighter.warning(actualValue.out(options))
};
};