Code coverage report for lib/colors.js

Statements: 88.89% (8 / 9)      Branches: 100% (0 / 0)      Functions: 80% (4 / 5)      Lines: 88.89% (8 / 9)      Ignored: none     

All files » lib/ » colors.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 161 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);
    });
};