diff js_return.t @ 1436:9d8b100a6ce3

Tests: get rid of deprecated njs API in 0.2.2.
author Dmitry Volyntsev <xeioex@nginx.com>
date Mon, 28 Jan 2019 16:17:11 +0300
parents f168fc46c7a4
children 9521130f6f22
line wrap: on
line diff
--- a/js_return.t
+++ b/js_return.t
@@ -56,12 +56,12 @@ http {
 EOF
 
 $t->write_file('test.js', <<EOF);
-    function test_njs(req, res) {
-        res.return(200, njs.version);
+    function test_njs(r) {
+        r.return(200, njs.version);
     }
 
-    function test_return(req, res) {
-        res.return(Number(req.args.c), req.args.t);
+    function test_return(r) {
+        r.return(Number(r.args.c), r.args.t);
     }
 
 EOF