diff js_object.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 9e5d38da7651
children 18ac4d9e5a2a
line wrap: on
line diff
--- a/js_object.t
+++ b/js_object.t
@@ -42,10 +42,6 @@ http {
         listen       127.0.0.1:8080;
         server_name  localhost;
 
-        location /njs {
-            js_content test_njs;
-        }
-
         location /to_string {
             js_content to_string;
         }
@@ -79,10 +75,6 @@ http {
 EOF
 
 $t->write_file('test.js', <<EOF);
-    function test_njs(r) {
-        r.return(200, njs.version);
-    }
-
     function to_string(r) {
         r.return(200, r.toString());
     }
@@ -127,11 +119,6 @@ EOF
 
 ###############################################################################
 
-TODO: {
-local $TODO = 'not yet'
-              unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.4.0';
-
-
 like(http_get('/to_string'), qr/\[object Request\]/, 'toString');
 like(http_get('/define_prop'), qr/Foo: bar/, 'define_prop');
 like(http(
@@ -144,6 +131,4 @@ like(http_get('/redefine_proxy'), qr/red
 like(http_get('/redefine_proto'), qr/a|b/, 'redefine_proto');
 like(http_get('/get_own_prop_descs'), qr/true/, 'get_own_prop_descs');
 
-}
-
 ###############################################################################