diff js_modules.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 f4ae08adc23f
children 18ac4d9e5a2a
line wrap: on
line diff
--- a/js_modules.t
+++ b/js_modules.t
@@ -41,10 +41,6 @@ http {
         listen       127.0.0.1:8080;
         server_name  localhost;
 
-        location /njs {
-            js_content test_njs;
-        }
-
         location /test {
             js_content test;
         }
@@ -56,10 +52,6 @@ EOF
 $t->write_file('test.js', <<EOF);
     import m from 'module.js';
 
-    function test_njs(r) {
-        r.return(200, njs.version);
-    }
-
     function test(r) {
         r.return(200, m[r.args.fun](r.args.a, r.args.b));
     }