mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): correct "returnes" typo in workshop word counter (#67103)
This commit is contained in:
+4
-4
@@ -26,28 +26,28 @@ assert.deepEqual(spy.returns, ["number", "number", "number", "number"]);
|
||||
spy.restore();
|
||||
```
|
||||
|
||||
`getMatchedWordCount([], "bar")` should return `0`, but it returnes `--fcc-actual--`.
|
||||
`getMatchedWordCount([], "bar")` should return `0`, but it returns `--fcc-actual--`.
|
||||
|
||||
```js
|
||||
const resultString = String(getMatchedWordCount([], "bar"));
|
||||
assert.strictEqual(resultString, "0");
|
||||
```
|
||||
|
||||
`getMatchedWordCount(["foo"], "bar")` should return `0`, but it returnes `--fcc-actual--`.
|
||||
`getMatchedWordCount(["foo"], "bar")` should return `0`, but it returns `--fcc-actual--`.
|
||||
|
||||
```js
|
||||
const resultString = String(getMatchedWordCount(["foo"], "bar"));
|
||||
assert.equal(resultString, "0");
|
||||
```
|
||||
|
||||
`getMatchedWordCount(["foo", "bar", "foo"], "bar")` should return `1`, but it returnes `--fcc-actual--`.
|
||||
`getMatchedWordCount(["foo", "bar", "foo"], "bar")` should return `1`, but it returns `--fcc-actual--`.
|
||||
|
||||
```js
|
||||
const resultString = String(getMatchedWordCount(["foo", "bar", "foo"], "bar"));
|
||||
assert.equal(resultString, "1");
|
||||
```
|
||||
|
||||
`getMatchedWordCount(["foo", "bar", "foo"], "foo")` should return `2`, but it returnes `--fcc-actual--`.
|
||||
`getMatchedWordCount(["foo", "bar", "foo"], "foo")` should return `2`, but it returns `--fcc-actual--`.
|
||||
|
||||
```js
|
||||
const resultString = String(getMatchedWordCount(["foo", "bar", "foo"], "foo"));
|
||||
|
||||
Reference in New Issue
Block a user