diff js_dump.t @ 1614:bc0990ea2e5b

Tests: js TODO adjusted up to 0.4.0.
author Dmitry Volyntsev <xeioex@nginx.com>
date Tue, 17 Nov 2020 17:49:16 +0000
parents 96fb3513345b
children c56df3527161
line wrap: on
line diff
--- a/js_dump.t
+++ b/js_dump.t
@@ -42,10 +42,6 @@ http {
         listen       127.0.0.1:8080;
         server_name  localhost;
 
-        location /njs {
-            js_content test_njs;
-        }
-
         location /dump {
             js_content test_dump;
         }
@@ -67,10 +63,6 @@ http {
 EOF
 
 $t->write_file('test.js', <<EOF);
-    function test_njs(r) {
-        r.return(200, njs.version);
-    }
-
     function test_dump(r) {
         r.headersOut.baz = 'bar';
         r.return(200, njs.dump(r));
@@ -94,10 +86,6 @@ EOF
 
 ###############################################################################
 
-TODO: {
-local $TODO = 'not yet'
-               unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.3.8';
-
 like(http(
 	'GET /dump?v=1&t=x HTTP/1.0' . CRLF
 	. 'Foo: bar' . CRLF
@@ -117,6 +105,4 @@ like(http(
 	. 'Host: localhost' . CRLF . CRLF
 ), qr/responseBody":"\{GET}"/, 'JSON.stringify(reply)');
 
-}
-
 ###############################################################################