8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3a6283 commit 8bc6e47Copy full SHA for 8bc6e47
12_findTheOldest/findTheOldest.spec.js
@@ -21,7 +21,26 @@ describe('findTheOldest', () => {
21
]
22
expect(findTheOldest(people).name).toBe('Ray');
23
});
24
- test('finds the oldest person if yearOfDeath field is not present', () => {
+ test.skip('finds the oldest person if yearOfDeath field is undefined on a non-oldest person', () => {
25
+ const people = [
26
+ {
27
+ name: "Carly",
28
+ yearOfBirth: 2018,
29
+ },
30
31
+ name: "Ray",
32
+ yearOfBirth: 1962,
33
+ yearOfDeath: 2011,
34
35
36
+ name: "Jane",
37
+ yearOfBirth: 1912,
38
+ yearOfDeath: 1941,
39
40
+ ]
41
+ expect(findTheOldest(people).name).toBe('Ray');
42
+ });
43
+ test.skip('finds the oldest person if yearOfDeath field is undefined for the oldest person', () => {
44
const people = [
45
{
46
name: "Carly",
0 commit comments