mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-17 21:53:26 +09:00
Revert "Resolve merge conflicts"
This reverts commit61338e0ca0, reversing changes made tob9983073cc.
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
let findTheOldest = function () {};
|
||||
|
||||
module.exports = findTheOldest;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const findTheOldest = require("./findTheOldest");
|
||||
let findTheOldest = require("./findTheOldest");
|
||||
|
||||
describe("findTheOldest", () => {
|
||||
test("finds the oldest person!", () => {
|
||||
describe("findTheOldest", function () {
|
||||
it("finds the oldest person!", function () {
|
||||
const people = [
|
||||
{
|
||||
name: "Carly",
|
||||
@@ -19,7 +19,7 @@ describe("findTheOldest", () => {
|
||||
yearOfDeath: 1941,
|
||||
},
|
||||
];
|
||||
expect(findTheOldest(people).name).toBe("Ray");
|
||||
expect(findTheOldest(people).name).toEqual("Ray");
|
||||
});
|
||||
xit("finds the oldest person if someone is still living", function () {
|
||||
const people = [
|
||||
@@ -38,7 +38,7 @@ describe("findTheOldest", () => {
|
||||
yearOfDeath: 1941,
|
||||
},
|
||||
];
|
||||
expect(findTheOldest(people).name).toBe("Ray");
|
||||
expect(findTheOldest(people).name).toEqual("Ray");
|
||||
});
|
||||
xit("finds the oldest person if the OLDEST is still living", function () {
|
||||
const people = [
|
||||
@@ -57,6 +57,6 @@ describe("findTheOldest", () => {
|
||||
yearOfDeath: 1941,
|
||||
},
|
||||
];
|
||||
expect(findTheOldest(people).name).toBe("Carly");
|
||||
expect(findTheOldest(people).name).toEqual("Carly");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user