fix(curriculum): restore whitespace-tolerant message check in greeting bot steps 2 and 6 (#69208)

This commit is contained in:
Sem Bauke
2026-08-03 08:27:03 +02:00
committed by GitHub
parent a0805361f1
commit 8c36be50c9
2 changed files with 10 additions and 2 deletions
@@ -30,7 +30,11 @@ assert.lengthOf(logSpy.calls, 2);
Your `console` statement should have the message `"I am excited to talk to you."`. Don't forget the quotes.
```js
assert.deepInclude(logSpy.calls, ["I am excited to talk to you."]);
assert.isTrue(
logSpy.calls.some(
(call) => /I\s+am\s+excited\s+to\s+talk\s+to\s+you\s*\./.test(call[0])
)
);
```
# --seed--
@@ -28,7 +28,11 @@ assert.lengthOf(logSpy.calls, 3);
Your `console` statement should have the message `"Allow me to introduce myself."`. Don't forget the quotes.
```js
assert.deepInclude(logSpy.calls, ["Allow me to introduce myself."]);
assert.isTrue(
logSpy.calls.some(
(call) => /Allow\s+me\s+to\s+introduce\s+myself\s*\./.test(call[0])
)
);
```
# --seed--