We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents badc29f + 3a98076 commit 6bf177fCopy full SHA for 6bf177f
analyze_test.go
@@ -234,7 +234,7 @@ func TestAnalyze_njs(t *testing.T) {
234
blockCtx{"http", "location"},
235
false,
236
},
237
- "js_periodic not ok in http": {
+ "js_periodic not ok in http if": {
238
&Directive{
239
Directive: "js_periodic",
240
Args: []string{"function"},
@@ -252,6 +252,15 @@ func TestAnalyze_njs(t *testing.T) {
252
blockCtx{"stream", "server"},
253
254
255
+ "js_periodic not ok in stream": {
256
+ &Directive{
257
+ Directive: "js_periodic",
258
+ Args: []string{"function"},
259
+ Line: 5,
260
+ },
261
+ blockCtx{"stream"},
262
+ true,
263
264
}
265
266
for name, tc := range testcases {
0 commit comments