changeset 1591:a7902e5adeab

Tests: style.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 18 Sep 2020 13:36:41 +0100
parents e682d5ad3861
children efd082b4aa9c
files js_internal_redirect.t js_request_body.t
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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');
             }
         }
     }
--- 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.
 
 ###############################################################################