test: fix multiple_line problem in match
Signed-off-by: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
parent
02b8109c14
commit
613654e882
@ -82,7 +82,10 @@ function error_test() {
|
|||||||
if (read_buffer.indexOf(prompt_unix) !== -1) {
|
if (read_buffer.indexOf(prompt_unix) !== -1) {
|
||||||
// if it's an exact match, then don't do the regexp
|
// if it's an exact match, then don't do the regexp
|
||||||
if (read_buffer !== client_unix.expect) {
|
if (read_buffer !== client_unix.expect) {
|
||||||
assert.ok(read_buffer.match(client_unix.expect));
|
var expect = client_unix.expect;
|
||||||
|
if (expect === prompt_multiline)
|
||||||
|
expect = /[\.]{3} /;
|
||||||
|
assert.ok(read_buffer.match(expect));
|
||||||
console.error('match');
|
console.error('match');
|
||||||
}
|
}
|
||||||
read_buffer = '';
|
read_buffer = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user