From 14d703154488879f9e44f208614908b21ccc2091 Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Fri, 19 Nov 2021 14:08:35 -0500 Subject: [PATCH] Fix RegExp#test in Config test (#1922) --- packages/astro/test/config.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/astro/test/config.test.js b/packages/astro/test/config.test.js index 693a74ab7..dc07637d3 100644 --- a/packages/astro/test/config.test.js +++ b/packages/astro/test/config.test.js @@ -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; } }