Skip to content

Commit

Permalink
prettier --write '**/*.{js,md}'
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Apr 4, 2020
1 parent 2d06fed commit dfde768
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions lib/unexpectedColor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -32,14 +30,14 @@ module.exports = {
`<div style="color: ${
color.lightness() > 0.5 ? 'black' : 'white'
}; font-size: 80%; text-align: center;">${color.hex()}</div>` +
`</div>`
`</div>`,
});
}
},
});
},
diff(actual, expected, output, diff, inspect, equal) {
return output.append(inspect(actual)).append(inspect(expected));
}
},
});

expect.addAssertion(
Expand All @@ -48,5 +46,5 @@ module.exports = {
expect(oneColor(subject), '[not] to equal', oneColor(value));
}
);
}
},
};

0 comments on commit dfde768

Please sign in to comment.