diff js.t @ 1781:386748f328b1

Tests: updated js properties deprecated since 0.5.0.
author Dmitry Volyntsev <xeioex@nginx.com>
date Tue, 02 Aug 2022 20:35:05 -0700
parents 0979f22e3a5b
children e55aa7021ea5
line wrap: on
line diff
--- a/js.t
+++ b/js.t
@@ -173,7 +173,7 @@ EOF
 
     function request_body(r) {
         try {
-            var body = r.requestBody;
+            var body = r.requestText;
             r.return(200, body);
 
         } catch (e) {
@@ -235,7 +235,7 @@ EOF
 
 EOF
 
-$t->try_run('no njs available')->plan(27);
+$t->try_run('no njs available')->plan(26);
 
 ###############################################################################
 
@@ -273,8 +273,6 @@ like(http_get('/type?path=variables.host
 like(http_get('/type?path=rawVariables.host'), qr/200 OK.*type: buffer$/s,
 	'rawVariables type');
 
-like(http_post('/type?path=requestBody'), qr/200 OK.*type: string$/s,
-	'requestBody type');
 like(http_post('/type?path=requestText'), qr/200 OK.*type: string$/s,
 	'requestText type');
 like(http_post('/type?path=requestBuffer'), qr/200 OK.*type: buffer$/s,