8000 Merge pull request #428 from donRehan/main · TezzGit/javascript-exercises@b092163 · GitHub
[go: up one dir, main page]

Skip to content

Commit b092163

Browse files
Merge pull request TheOdinProject#428 from donRehan/main
12_findTheOldest fix ambiguity and remove redundant test description
2 parents a84f55b + 8bc6e47 commit b092163

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

12_findTheOldest/findTheOldest.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('findTheOldest', () => {
2121
]
2222
expect(findTheOldest(people).name).toBe('Ray');
2323
});
24-
test.skip('finds the person with the greatest age if someone is still living', () => {
24+
test.skip('finds the oldest person if yearOfDeath field is undefined on a non-oldest person', () => {
2525
const people = [
2626
{
2727
name: "Carly",
@@ -40,7 +40,7 @@ describe('findTheOldest', () => {
4040
]
4141
expect(findTheOldest(people).name).toBe('Ray');
4242
});
43-
test.skip('finds the person with the greatest age if the OLDEST is still living', () => {
43+
test.skip('finds the oldest person if yearOfDeath field is undefined for the oldest person', () => {
4444
const people = [
4545
{
4646
name: "Carly",

0 commit comments

Comments
 (0)
0