File tree 1 file changed +11
-1
lines changed 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ test('log4js redisAppender', (batch) => {
90
90
channel : 'log'
91
91
} ) ;
92
92
93
- t . test ( 'redis redishost should match' , ( assert ) => {
93
+ t . test ( 'redis credentials should match' , ( assert ) => {
94
94
assert . equal ( result . redishost . host , '127.0.0.1' ) ;
95
95
assert . equal ( result . redishost . port , 6739 ) ;
96
96
assert . equal ( result . redishost . pass , '' ) ;
@@ -115,6 +115,16 @@ test('log4js redisAppender', (batch) => {
115
115
t . end ( ) ;
116
116
} ) ;
117
117
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
+
118
128
batch . test ( 'separate notification for each event' , ( t ) => {
119
129
const setup = setupLogging ( 'separate notification for each event' , {
120
130
host : '127.0.0.1' ,
You can’t perform that action at this time.
0 commit comments