We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dad38f commit 05c5639Copy full SHA for 05c5639
test/test_njs.py
@@ -50,6 +50,12 @@ def test_njs_template_expression(self, temp_dir):
50
self.check_expression('${uri + host}')
51
self.check_expression('${uri + `${host}`}')
52
53
+ def test_njs_iteration(self, temp_dir):
54
+ self.create_files('Connection,Host', 'close,localhost')
55
+
56
+ self.check_expression('/${Object.keys(headers).sort().join()}')
57
+ self.check_expression('/${Object.values(headers).sort().join()}')
58
59
def test_njs_variables(self, temp_dir):
60
self.create_files('str', 'localhost', '127.0.0.1')
61
0 commit comments