diff js_promise.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 5e2b8621aa5d
children 54f867e69cb5
line wrap: on
line diff
--- a/js_promise.t
+++ b/js_promise.t
@@ -55,10 +55,6 @@ http {
         location /sub_token {
             js_content sub_token;
         }
-
-        location /njs {
-            js_content test_njs;
-        }
     }
 }
 
@@ -164,24 +160,14 @@ EOF
         r.return(parseInt(code), '{"token": "'+ token +'"}');
     }
 
-    function test_njs(r) {
-        r.return(200, njs.version);
-    }
-
 EOF
 
 $t->try_run('no njs available')->plan(3);
 
 ###############################################################################
 
-TODO: {
-local $TODO = 'not yet'
-	unless http_get('/njs') =~ /^([.0-9]+)$/m && $1 ge '0.3.8';
-
 like(http_get('/promise'), qr/{"token": "b"}/, "Promise");
 like(http_get('/promise_throw'), qr/{"token": "x"}/, "Promise throw and catch");
 like(http_get('/timeout'), qr/{"token": "R"}/, "Promise with timeout");
 
-}
-
 ###############################################################################