aboutsummaryrefslogtreecommitdiff
path: root/nginx/t/js_fetch_objects.t
diff options
context:
space:
mode:
Diffstat (limited to 'nginx/t/js_fetch_objects.t')
-rw-r--r--nginx/t/js_fetch_objects.t18
1 files changed, 15 insertions, 3 deletions
diff --git a/nginx/t/js_fetch_objects.t b/nginx/t/js_fetch_objects.t
index d0f47630..1bc88a3d 100644
--- a/nginx/t/js_fetch_objects.t
+++ b/nginx/t/js_fetch_objects.t
@@ -45,6 +45,10 @@ http {
js_content test.njs;
}
+ location /engine {
+ js_content test.engine;
+ }
+
location /headers {
js_content test.headers;
}
@@ -88,6 +92,10 @@ $t->write_file('test.js', <<EOF);
r.return(200, njs.version);
}
+ function engine(r) {
+ r.return(200, njs.engine);
+ }
+
function header(r) {
r.return(200, r.headersIn.a);
}
@@ -501,11 +509,15 @@ $t->write_file('test.js', <<EOF);
run(r, tests);
}
- export default {njs: test_njs, body, headers, request, response, fetch,
- fetch_multi_header};
+ export default {njs: test_njs, engine, body, headers, request, response,
+ fetch, fetch_multi_header};
EOF
-$t->try_run('no njs')->plan(5);
+$t->try_run('no njs');
+
+plan(skip_all => 'not yet') if http_get('/engine') =~ /QuickJS$/m;
+
+$t->plan(5);
###############################################################################