Skip to content

Commit b5bee46

Browse files
authored
make test for { children } more flexible to allow whitespace (#427)
1 parent 2283704 commit b5bee46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/03.using-jsx/02.solution.interpolation/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ await testStep('children is interpolated', async () => {
2020
inlineScript.textContent,
2121
'children should be interpolated',
2222
).not.to.include('>Hello World<')
23-
expect(inlineScript.textContent).to.include('{children}')
23+
expect(inlineScript.textContent, 'expected script to include { children }').to.match(/{\s*children\s*}/)
2424
})

0 commit comments

Comments
 (0)