javascript
javascript copied to clipboard
Typo in `High Score Board` exercise test file
Issue in updateScore
function
const scoreBoard = {
'Amil Pastorius': 99373,
'Min-seo Shin': 0,
'Jesse Johnson': 1337,
};
const expected = {
'Amil Pastorius': 99373,
'Min-seo Shin': 1999,
'Jesse Johnson': 2674,
};
updateScore(scoreBoard, 'Min-seo Shin', 1999);
- const actual = updateScore(scoreBoard, 'Jesse Johnson', 1337);
+ const actual = updateScore(scoreBoard, 'Jesse Johnson', 2674);
expect(actual).toEqual(expected);
expect(Object.is(actual, scoreBoard)).toBe(true);