# HG changeset patch # User Sergey Kandaurov # Date 1523024483 -10800 # Node ID 8bd4b88fcac526385b1267a8f6a2bb9afc5346d1 # Parent 3b30e97acdcb8d2ed0e62702e90df0c55877c0b0 Tests: TODO js_return.t fail seen with older njs on some platforms. diff --git a/js_return.t b/js_return.t --- a/js_return.t +++ b/js_return.t @@ -12,6 +12,8 @@ use strict; use Test::More; +use Config; + BEGIN { use FindBin; chdir($FindBin::Bin); } use lib 'lib'; @@ -41,6 +43,10 @@ http { listen 127.0.0.1:8080; server_name localhost; + location /njs { + js_content test_njs; + } + location / { js_content test_return; } @@ -50,8 +56,11 @@ http { EOF $t->write_file('test.js', <