8000 Update redisAppender-test.js · mKoder/log4js-node@cd53058 · GitHub
[go: up one dir, main page]

Skip to content

Commit cd53058

Browse files
authored
Update redisAppender-test.js
1 parent 44616d0 commit cd53058

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/tap/redisAppender-test.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ test('log4js redisAppender', (batch) => {
9090
channel: 'log'
9191
});
9292

93-
t.test('redis redishost should match', (assert) => {
93+
t.test('redis credentials should match', (assert) => {
9494
assert.equal(result.redishost.host, '127.0.0.1');
9595
assert.equal(result.redishost.port, 6739);
9696
assert.equal(result.redishost.pass, '');
@@ -115,6 +115,16 @@ test('log4js redisAppender', (batch) => {
115115
t.end();
116116
});
117117

118+
batch.test('config with layout', (t) => {
119+
const result = setupLogging('config with layout', {
120+
layout: {
121+
type: 'tester'
122+
}
123+
});
124+
t.equal(result.layout.type, 'tester', 'should configure layout');
125+
t.end();
126+
});
127+
118128
batch.test('separate notification for each event', (t) => {
119129
const setup = setupLogging('separate notification for each event', {
120130
host: '127.0.0.1',

0 commit comments

Comments
 (0)
0