aboutsummaryrefslogtreecommitdiff
path: root/nginx/t/js_fetch_objects.t
diff options
context:
space:
mode:
authorDmitry Volyntsev <xeioex@nginx.com>2025-02-21 22:54:00 -0800
committerDmitry Volyntsev <xeioexception@gmail.com>2025-02-24 16:49:43 -0800
commit3045f31298c2b18f1c16c9414c91429bbfb9281d (patch)
tree02940b8d6feadad45254150e4505510efed6b2e1 /nginx/t/js_fetch_objects.t
parent62f863a80ca226b62bf650643806b653a3d6c34f (diff)
downloadnjs-3045f31298c2b18f1c16c9414c91429bbfb9281d.tar.gz
njs-3045f31298c2b18f1c16c9414c91429bbfb9281d.zip
Tests: making fetch test portable by removing njs.dump().
Diffstat (limited to 'nginx/t/js_fetch_objects.t')
-rw-r--r--nginx/t/js_fetch_objects.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/nginx/t/js_fetch_objects.t b/nginx/t/js_fetch_objects.t
index 1bc88a3d..67cabdfc 100644
--- a/nginx/t/js_fetch_objects.t
+++ b/nginx/t/js_fetch_objects.t
@@ -186,8 +186,8 @@ $t->write_file('test.js', <<EOF);
}, 'A, B, C, D, E, F'],
['getAll', () => {
var h = new Headers({a: 'X', A: 'Z'});
- return njs.dump(h.getAll('a'));
- }, "['X','Z']"],
+ return JSON.stringify(h.getAll('a'));
+ }, '["X","Z"]'],
['inherit', () => {
var h = new Headers({a: 'X', b: 'Y'});
var h2 = new Headers(h);