| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 1 1 842 1 813 1 187 1 | module.exports = function (expect) {
expect.output.addStyle('error', function (content) {
this.text(content, 'red, bold');
});
expect.output.addStyle('strings', function (content) {
this.text(content, 'cyan');
});
expect.output.addStyle('key', function (content) {
this.text(content);
});
// Intended to be redefined by a plugin that offers syntax highlighting:
expect.output.addStyle('code', function (content, language) {
this.text(content);
});
};
|