Mercurial > hg > nginx-tests
diff h2_request_body_js.t @ 1751:18ac4d9e5a2a
Tests: rewriting njs tests without deprecated "js_include".
author | Dmitry Volyntsev <xeioex@nginx.com> |
---|---|
date | Thu, 09 Dec 2021 17:36:29 +0000 |
parents | 5ac6efbe5552 |
children | 386748f328b1 |
line wrap: on
line diff
--- a/h2_request_body_js.t +++ b/h2_request_body_js.t @@ -36,7 +36,7 @@ events { http { %%TEST_GLOBALS_HTTP%% - js_include test.js; + js_import test.js; server { listen 127.0.0.1:8080 http2; @@ -45,7 +45,7 @@ http { lingering_close off; location / { - js_content sr_body; + js_content test.sr_body; add_header X-Body $request_body; } @@ -64,6 +64,8 @@ function sr_body(r) { r.subrequest('/sr', body_fwd_cb); } +export default {sr_body}; + EOF $t->write_file('sr', 'SEE-THIS');