@@ -78,42 +78,42 @@ describe('logger', () => {
78
78
it ( 'does not log debug packets unless verbose' , ( ) => {
79
79
const log = new ConsoleStream ( { verbose : false } ) ;
80
80
const localProcess = fakeProcess ( ) ;
81
- // $FLOW_IGNORE : fake process for testing reasons.
81
+ // $FlowIgnore : fake process for testing reasons.
82
82
log . write ( packet ( { level : bunyan . DEBUG } ) , { localProcess} ) ;
83
83
sinon . assert . notCalled ( localProcess . stdout . write ) ;
84
84
} ) ;
85
85
86
86
it ( 'does not log trace packets unless verbose' , ( ) => {
87
87
const log = new ConsoleStream ( { verbose : false } ) ;
88
88
const localProcess = fakeProcess ( ) ;
89
- // $FLOW_IGNORE : fake process for testing reasons.
89
+ // $FlowIgnore : fake process for testing reasons.
90
90
log . write ( packet ( { level : bunyan . TRACE } ) , { localProcess} ) ;
91
91
sinon . assert . notCalled ( localProcess . stdout . write ) ;
92
92
} ) ;
93
93
94
94
it ( 'logs debug packets when verbose' , ( ) => {
95
95
const log = new ConsoleStream ( { verbose : true } ) ;
96
96
const localProcess = fakeProcess ( ) ;
97
- // $FLOW_IGNORE : fake process for testing reasons.
97
+ // $FlowIgnore : fake process for testing reasons.
98
98
log . write ( packet ( { level : bunyan . DEBUG } ) , { localProcess} ) ;
99
99
sinon . assert . called ( localProcess . stdout . write ) ;
100
100
} ) ;
101
101
102
102
it ( 'logs trace packets when verbose' , ( ) => {
103
103
const log = new ConsoleStream ( { verbose : true } ) ;
104
104
const localProcess = fakeProcess ( ) ;
105
- // $FLOW_IGNORE : fake process for testing reasons.
105
+ // $FlowIgnore : fake process for testing reasons.
106
106
log . write ( packet ( { level : bunyan . TRACE } ) , { localProcess} ) ;
107
107
sinon . assert . called ( localProcess . stdout . write ) ;
108
108
} ) ;
109
109
110
110
it ( 'logs info packets when verbose or not' , ( ) => {
111
111
const log = new ConsoleStream ( { verbose : false } ) ;
112
112
const localProcess = fakeProcess ( ) ;
113
- // $FLOW_IGNORE : fake process for testing reasons.
113
+ // $FlowIgnore : fake process for testing reasons.
114
114
log . write ( packet ( { level : bunyan . INFO } ) , { localProcess} ) ;
115
115
log . makeVerbose ( ) ;
116
- // $FLOW_IGNORE : fake process for testing reasons.
116
+ // $FlowIgnore : fake process for testing reasons.
117
117
log . write ( packet ( { level : bunyan . INFO } ) , { localProcess} ) ;
118
118
sinon . assert . callCount ( localProcess . stdout . write , 2 ) ;
119
119
} ) ;
@@ -123,10 +123,10 @@ describe('logger', () => {
123
123
const localProcess = fakeProcess ( ) ;
124
124
125
125
log . startCapturing ( ) ;
126
- // $FLOW_IGNORE : fake process for testing reasons.
126
+ // $FlowIgnore : fake process for testing reasons.
127
127
log . write ( packet ( { msg : 'message' } ) , { localProcess} ) ;
128
128
sinon . assert . notCalled ( localProcess . stdout . write ) ;
129
- // $FLOW_IGNORE : fake process for testing reasons.
129
+ // $FlowIgnore : fake process for testing reasons.
130
130
log . flushCapturedLogs ( { localProcess} ) ;
131
131
sinon . assert . calledWith ( localProcess . stdout . write , 'message\n' ) ;
132
132
} ) ;
@@ -136,14 +136,14 @@ describe('logger', () => {
136
136
let localProcess = fakeProcess ( ) ;
137
137
138
138
log . startCapturing ( ) ;
139
- // $FLOW_IGNORE : fake process for testing reasons.
139
+ // $FlowIgnore : fake process for testing reasons.
140
140
log . write ( packet ( ) , { localProcess} ) ;
141
- // $FLOW_IGNORE : fake process for testing reasons.
141
+ // $FlowIgnore : fake process for testing reasons.
142
142
log . flushCapturedLogs ( { localProcess} ) ;
143
143
144
144
// Make sure there is nothing more to flush.
145
145
localProcess = fakeProcess ( ) ;
146
- // $FLOW_IGNORE : fake process for testing reasons.
146
+ // $FlowIgnore : fake process for testing reasons.
147
147
log . flushCapturedLogs ( { localProcess} ) ;
148
148
sinon . assert . notCalled ( localProcess . stdout . write ) ;
149
149
} ) ;
@@ -153,12 +153,12 @@ describe('logger', () => {
153
153
let localProcess = fakeProcess ( ) ;
154
154
155
155
log . startCapturing ( ) ;
156
- // $FLOW_IGNORE : fake process for testing reasons.
156
+ // $FlowIgnore : fake process for testing reasons.
157
157
log . write ( packet ( ) , { localProcess} ) ;
158
158
sinon . assert . notCalled ( localProcess . stdout . write ) ;
159
159
160
160
log . stopCapturing ( ) ;
161
- // $FLOW_IGNORE : fake process for testing reasons.
161
+ // $FlowIgnore : fake process for testing reasons.
162
162
log . write ( packet ( ) , { localProcess} ) ;
163
163
sinon . assert . callCount ( localProcess . stdout . write , 1 ) ;
164
164
@@ -167,7 +167,7 @@ describe('logger', () => {
167
167
log . startCapturing ( ) ;
168
168
log . write ( packet ( ) ) ;
169
169
localProcess = fakeProcess ( ) ;
170
- // $FLOW_IGNORE : fake process for testing reasons.
170
+ // $FlowIgnore : fake process for testing reasons.
171
171
log . flushCapturedLogs ( { localProcess} ) ;
172
172
sinon . assert . callCount ( localProcess . stdout . write , 1 ) ;
173
173
} ) ;
0 commit comments