Updated file paths

This commit is contained in:
thatblindgeye
2023-02-01 18:53:54 -05:00
parent a092bf0559
commit 2ec0f4344d
24 changed files with 207 additions and 204 deletions
@@ -1,62 +1,62 @@
const findTheOldest = require("./findTheOldest");
const findTheOldest = require('./findTheOldest-solution');
describe("findTheOldest", () => {
test("finds the oldest person!", () => {
describe('findTheOldest', () => {
test('finds the oldest person!', () => {
const people = [
{
name: "Carly",
name: 'Carly',
yearOfBirth: 1942,
yearOfDeath: 1970,
},
{
name: "Ray",
name: 'Ray',
yearOfBirth: 1962,
yearOfDeath: 2011,
},
{
name: "Jane",
name: 'Jane',
yearOfBirth: 1912,
yearOfDeath: 1941,
},
];
expect(findTheOldest(people).name).toBe("Ray");
expect(findTheOldest(people).name).toBe('Ray');
});
test.skip("finds the oldest person if someone is still living", () => {
test.skip('finds the oldest person if someone is still living', () => {
const people = [
{
name: "Carly",
name: 'Carly',
yearOfBirth: 2018,
},
{
name: "Ray",
name: 'Ray',
yearOfBirth: 1962,
yearOfDeath: 2011,
},
{
name: "Jane",
name: 'Jane',
yearOfBirth: 1912,
yearOfDeath: 1941,
},
];
expect(findTheOldest(people).name).toBe("Ray");
expect(findTheOldest(people).name).toBe('Ray');
});
test.skip("finds the oldest person if the OLDEST is still living", () => {
test.skip('finds the oldest person if the OLDEST is still living', () => {
const people = [
{
name: "Carly",
name: 'Carly',
yearOfBirth: 1066,
},
{
name: "Ray",
name: 'Ray',
yearOfBirth: 1962,
yearOfDeath: 2011,
},
{
name: "Jane",
name: 'Jane',
yearOfBirth: 1912,
yearOfDeath: 1941,
},
];
expect(findTheOldest(people).name).toBe("Carly");
expect(findTheOldest(people).name).toBe('Carly');
});
});