Skip to content

Commit 0801075

Browse files
committed
Updating test file
1 parent 617f843 commit 0801075

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

exercises/practice/high-scores/high-scores.spec.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,33 @@ describe('High Scores Test Suite', () => {
4242
const input = [40];
4343
expect(new HighScores(input).personalTopThree).toEqual([40]);
4444
});
45+
46+
xtest('Latest score after personal top scores', () => {
47+
const input = [70, 50, 20, 30];
48+
const highScores = new HighScores(input);
49+
highScores.personalTopThree;
50+
expect(highScores.latest).toEqual(30);
51+
});
52+
53+
xtest('Scores after personal top scores', () => {
54+
const input = [30, 50, 20, 70];
55+
const highScores = new HighScores(input);
56+
highScores.personalTopThree;
57+
expect(highScores.scores).toEqual(input);
58+
});
59+
60+
xtest('Latest score after personal best', () => {
61+
const input = [20, 70, 15, 25, 30];
62+
const highScores = new HighScores(input);
63+
highScores.personalBest;
64+
expect(highScores.latest).toEqual(30);
65+
});
66+
67+
xtest('Scores after personal best', () => {
68+
const input = [20, 70, 15, 25, 30];
69+
const highScores = new HighScores(input);
70+
highScores.personalBest;
71+
expect(highScores.scores).toEqual(input);
72+
});
4573
});
4674
});

0 commit comments

Comments
 (0)