fix(#730): make the red color lighter for error

This commit is contained in:
Teamop 2018-06-18 17:33:55 +08:00
parent 0a7c0f7644
commit 095ede2bdf
2 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ const styles = {
cyan: [36, 39],
green: [32, 39],
magenta: [35, 39],
red: [31, 39],
red: [91, 39],
yellow: [33, 39]
};

View File

@ -30,7 +30,7 @@ test('log4js layouts', (batch) => {
assert.equal(
output,
'\x1B[31m[2010-12-05T14:18:30.045] [ERROR] cheese - \x1B[39mnonsense'
'\x1B[91m[2010-12-05T14:18:30.045] [ERROR] cheese - \x1B[39mnonsense'
);
assert.end();
});
@ -47,7 +47,7 @@ test('log4js layouts', (batch) => {
colour: 'red'
}
});
assert.equal(output, '\x1B[31m[2010-12-05T14:18:30.045] [ERROR] cheese - \x1B[39mthing 2');
assert.equal(output, '\x1B[91m[2010-12-05T14:18:30.045] [ERROR] cheese - \x1B[39mthing 2');
assert.end();
});
t.end();