on master help sign in
add a couple more tests
138456eAmjad Masad
tests/nodejs/eval_code.expnew file+8
@@ -0,0 +1,8 @@
1+#!/usr/bin/expect -f
2+
3+set timeout -1
4+spawn ./prybar-nodejs -q -e 1+1
5+match_max 100000
6+expect -exact "2\r
7+"
8+expect eof
tests/nodejs/printing.expnew file+13
@@ -0,0 +1,13 @@
1+#!/usr/bin/expect -f
2+
3+set timeout -1
4+spawn ./prybar-nodejs -i -q
5+match_max 100000
6+expect -exact "\[1G\[0J--> \[5G"
7+send -- "console.log('x')\r"
8+expect -exact "console.log('x')\r\r
9+x\r
10+\[90mundefined\[39m\r
11+\[1G\[0J--> "
12+send -- ""
13+expect eof