mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): country spelling issue in lab voting system challenge 26 (#60608)
This commit is contained in:
+4
-4
@@ -162,16 +162,16 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
When `Malysia` exists in the voting options, `vote("Malysia", "traveler1")` should return `Voter traveler1 voted for "Malysia".`
|
||||
When `Malaysia` exists in the voting options, `vote("Malaysia", "traveler1")` should return `Voter traveler1 voted for "Malaysia".`
|
||||
|
||||
```js
|
||||
const pollCopy = new Map(poll);
|
||||
try {
|
||||
poll.clear();
|
||||
addOption('Malysia');
|
||||
addOption('Malaysia');
|
||||
assert.equal(
|
||||
vote('Malysia', 'traveler1'),
|
||||
'Voter traveler1 voted for "Malysia".'
|
||||
vote('Malaysia', 'traveler1'),
|
||||
'Voter traveler1 voted for "Malaysia".'
|
||||
);
|
||||
} finally {
|
||||
poll.clear();
|
||||
|
||||
Reference in New Issue
Block a user