mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-01 15:02:09 +08:00
fix(curriculum): restore whitespace-tolerant message check in greeting bot steps 2 and 6 (#69208)
This commit is contained in:
+5
-1
@@ -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--
|
||||
|
||||
+5
-1
@@ -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--
|
||||
|
||||
Reference in New Issue
Block a user