# HG changeset patch # User Sergey Kandaurov # Date 1600432601 -3600 # Node ID a7902e5adeabb1dd13f85902ccb0955baa59e146 # Parent e682d5ad3861af0a2117892a1aefc17b1303a1fa Tests: style. diff --git a/js_internal_redirect.t b/js_internal_redirect.t --- a/js_internal_redirect.t +++ b/js_internal_redirect.t @@ -67,16 +67,16 @@ EOF r.return(200, njs.version); } - function test_redirect(req) { - if (req.variables.arg_dest == 'named') { - req.internalRedirect('\@named'); + function test_redirect(r) { + if (r.variables.arg_dest == 'named') { + r.internalRedirect('\@named'); } else { - if (req.variables.arg_a) { - req.internalRedirect('/redirect?b=' + req.variables.arg_a); + if (r.variables.arg_a) { + r.internalRedirect('/redirect?b=' + r.variables.arg_a); } else { - req.internalRedirect('/redirect'); + r.internalRedirect('/redirect'); } } } diff --git a/js_request_body.t b/js_request_body.t --- a/js_request_body.t +++ b/js_request_body.t @@ -3,7 +3,7 @@ # (C) Dmitry Volyntsev # (C) Nginx, Inc. -# Tests for http njs module, req.requestBody method. +# Tests for http njs module, r.requestBody method. ###############################################################################