From 93ee4aae77741610171ff4e8fbb84c94fd01e1da Mon Sep 17 00:00:00 2001 From: Steve Zelaznik Date: Sun, 21 Sep 2025 16:41:44 -0500 Subject: [PATCH] make test for { children } more flexible to allow whitespace --- exercises/03.using-jsx/02.solution.interpolation/index.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/03.using-jsx/02.solution.interpolation/index.test.ts b/exercises/03.using-jsx/02.solution.interpolation/index.test.ts index b20315c99..7f57248f4 100644 --- a/exercises/03.using-jsx/02.solution.interpolation/index.test.ts +++ b/exercises/03.using-jsx/02.solution.interpolation/index.test.ts @@ -20,5 +20,5 @@ await testStep('children is interpolated', async () => { inlineScript.textContent, 'children should be interpolated', ).not.to.include('>Hello World<') - expect(inlineScript.textContent).to.include('{children}') + expect(inlineScript.textContent, 'expected script to include { children }').to.match(/{\s*children\s*}/) })