Fix RegExp#test in Config test (#1922)

This commit is contained in:
Jonathan Neal 2021-11-19 14:08:35 -05:00 committed by GitHub
parent 8733599e61
commit 14d7031544
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ describe('config', () => {
proc.stdout.setEncoding('utf8');
for await (const chunk of proc.stdout) {
if (/Local:/.it(chunk)) {
if (/Local:/.test(chunk)) {
expect(chunk).to.include('127.0.0.1');
break;
}
@ -40,7 +40,7 @@ describe('config', () => {
process.stdout.setEncoding('utf8');
for await (const chunk of process.stdout) {
if (/Server started/.it(chunk)) {
if (/Server started/.test(chunk)) {
break;
}
}