mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-06-05 15:09:09 +09:00
update tests, multiple exercises
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const expect = require('expect');let findTheOldest = require('./findTheOldest')
|
||||
const findTheOldest = require('./findTheOldest')
|
||||
|
||||
describe('findTheOldest', function() {
|
||||
it('finds the oldest person!', function() {
|
||||
describe('findTheOldest', () => {
|
||||
test('finds the oldest person!', () => {
|
||||
const people = [
|
||||
{
|
||||
name: 'Carly',
|
||||
@@ -19,9 +19,9 @@ describe('findTheOldest', function() {
|
||||
yearOfDeath: 1941
|
||||
},
|
||||
]
|
||||
expect(findTheOldest(people).name).toEqual('Ray');
|
||||
expect(findTheOldest(people).name).toBe('Ray');
|
||||
});
|
||||
xit('finds the oldest person if someone is still living', function() {
|
||||
test.skip('finds the oldest person if someone is still living', () => {
|
||||
const people = [
|
||||
{
|
||||
name: 'Carly',
|
||||
@@ -38,9 +38,9 @@ describe('findTheOldest', function() {
|
||||
yearOfDeath: 1941
|
||||
},
|
||||
]
|
||||
expect(findTheOldest(people).name).toEqual('Ray');
|
||||
expect(findTheOldest(people).name).toBe('Ray');
|
||||
});
|
||||
xit('finds the oldest person if the OLDEST is still living', function() {
|
||||
test.skip('finds the oldest person if the OLDEST is still living', () => {
|
||||
const people = [
|
||||
{
|
||||
name: 'Carly',
|
||||
@@ -57,7 +57,7 @@ describe('findTheOldest', function() {
|
||||
yearOfDeath: 1941
|
||||
},
|
||||
]
|
||||
expect(findTheOldest(people).name).toEqual('Carly');
|
||||
expect(findTheOldest(people).name).toBe('Carly');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user