fix(curriculum): allow whitespaces in tests by trimming textContent for Build a Balance Sheet (#61312)

This commit is contained in:
dev-kamil
2025-07-12 18:13:16 +02:00
committed by GitHub
parent 4b1f1ac25f
commit af26a7c18a
3 changed files with 3 additions and 3 deletions
@@ -25,7 +25,7 @@ assert.strictEqual(
Your `caption` element should have the text `Assets`.
```js
assert.strictEqual(document.querySelector('caption')?.textContent, 'Assets');
assert.strictEqual(document.querySelector('caption')?.textContent.trim(), 'Assets');
```
# --seed--
@@ -25,7 +25,7 @@ Your `caption` element should have the text `Liabilities`.
```js
assert.strictEqual(
document.querySelectorAll('table')?.[1]?.querySelector('caption')
?.textContent,
?.textContent.trim(),
'Liabilities'
);
```
@@ -22,7 +22,7 @@ Your `caption` element should have the text `Net Worth`.
```js
const table = document.querySelectorAll('table')?.[2];
assert.strictEqual(table?.querySelector('caption')?.textContent, 'Net Worth');
assert.strictEqual(table?.querySelector('caption')?.textContent.trim(), 'Net Worth');
```
Your third `table` element should have a `thead` element.