Fix RegExp#test in Config test (#1922)
This commit is contained in:
parent
8733599e61
commit
14d7031544
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ describe('config', () => {
|
||||||
|
|
||||||
proc.stdout.setEncoding('utf8');
|
proc.stdout.setEncoding('utf8');
|
||||||
for await (const chunk of proc.stdout) {
|
for await (const chunk of proc.stdout) {
|
||||||
if (/Local:/.it(chunk)) {
|
if (/Local:/.test(chunk)) {
|
||||||
expect(chunk).to.include('127.0.0.1');
|
expect(chunk).to.include('127.0.0.1');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ describe('config', () => {
|
||||||
|
|
||||||
process.stdout.setEncoding('utf8');
|
process.stdout.setEncoding('utf8');
|
||||||
for await (const chunk of process.stdout) {
|
for await (const chunk of process.stdout) {
|
||||||
if (/Server started/.it(chunk)) {
|
if (/Server started/.test(chunk)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue