diff --git a/lib/unexpectedColor.js b/lib/unexpectedColor.js index 24e951e..c8bee3d 100644 --- a/lib/unexpectedColor.js +++ b/lib/unexpectedColor.js @@ -17,10 +17,8 @@ module.exports = { this.text(color.hex()); }, ansi() { - this.block(function() { - this.text(' ', `bg${color.hex()}`) - .nl() - .white(color.hex()); + this.block(function () { + this.text(' ', `bg${color.hex()}`).nl().white(color.hex()); }); }, html() { @@ -32,14 +30,14 @@ module.exports = { `
${color.hex()}
` + - `` + ``, }); - } + }, }); }, diff(actual, expected, output, diff, inspect, equal) { return output.append(inspect(actual)).append(inspect(expected)); - } + }, }); expect.addAssertion( @@ -48,5 +46,5 @@ module.exports = { expect(oneColor(subject), '[not] to equal', oneColor(value)); } ); - } + }, };