]> git.kaiwu.me - njs.git/commitdiff
Fixed expect tests.
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 16 Apr 2021 13:46:46 +0000 (13:46 +0000)
committerDmitry Volyntsev <xeioex@nginx.com>
Fri, 16 Apr 2021 13:46:46 +0000 (13:46 +0000)
test/njs_expect_test.exp

index 8781f1c5104eb4ccf0a1d1e84380eaa956bd8ec0..e179f413901cde6e4ecf15d616ca0f11e6ca953d 100644 (file)
@@ -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"