[njs] Fixed expect tests.

Dmitry Volyntsev xeioex at nginx.com
Fri Apr 16 14:29:13 UTC 2021


details:   https://hg.nginx.org/njs/rev/0746b2ed76cc
branches:  
changeset: 1626:0746b2ed76cc
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Fri Apr 16 13:46:46 2021 +0000
description:
Fixed expect tests.

diffstat:

 test/njs_expect_test.exp |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 4a7c18a7825a -r 0746b2ed76cc test/njs_expect_test.exp
--- a/test/njs_expect_test.exp	Fri Apr 16 13:35:20 2021 +0000
+++ b/test/njs_expect_test.exp	Fri Apr 16 13:46:46 2021 +0000
@@ -70,7 +70,7 @@ njs_test {
 # Global completions, yes
 njs_test {
     {"\t\ty"
-     "\a\r\nDisplay all*possibilities? (y or n)*await"}
+     "\a\r\nDisplay all*possibilities? (y or n)*Array"}
 }
 
 # Global completions, single partial match
@@ -393,9 +393,9 @@ njs_test {
 # Non-ASCII characters
 njs_test {
     {"'絵文字'\r\n"
-     "絵文字"}
+     "'絵文字'"}
     {"var v = 'абвгдеёжзийкл';v[10]\r\n"
-     "й"}
+     "'й'"}
 }
 
 # Immediate events
@@ -805,7 +805,7 @@ njs_test {
     {"(new Function('return this'))() === globalThis\r\n"
      "true\r\n"}
     {"new Function('return this;')\r\n"
-     "TypeError: function constructor is disabled in \"safe\" mode\r\n"}
+     "[Function]"}
     {"new Function('return thi')\r\n"
      "TypeError: function constructor is disabled in \"safe\" mode\r\n"}
 } "-u"


More information about the nginx-devel mailing list