Fixed error in expect statements
Changed expect(findTheOldest(people).name).toBe('Ray'); to
expect(findTheOldest(people)).toBe('Ray');
			
			
This commit is contained in:
		
							parent
							
								
									137636a425
								
							
						
					
					
						commit
						29740f27a5
					
				| 
						 | 
				
			
			@ -19,7 +19,7 @@ describe('findTheOldest', () => {
 | 
			
		|||
        yearOfDeath: 1941,
 | 
			
		||||
      },
 | 
			
		||||
    ]
 | 
			
		||||
    expect(findTheOldest(people).name).toBe('Ray');
 | 
			
		||||
    expect(findTheOldest(people)).toBe('Ray');
 | 
			
		||||
  });
 | 
			
		||||
  test.skip('finds the oldest person if someone is still living', () => {
 | 
			
		||||
    const people = [
 | 
			
		||||
| 
						 | 
				
			
			@ -38,7 +38,7 @@ describe('findTheOldest', () => {
 | 
			
		|||
        yearOfDeath: 1941,
 | 
			
		||||
      },
 | 
			
		||||
    ]
 | 
			
		||||
    expect(findTheOldest(people).name).toBe('Ray');
 | 
			
		||||
    expect(findTheOldest(people)).toBe('Ray');
 | 
			
		||||
  });
 | 
			
		||||
  test.skip('finds the oldest person if the OLDEST is still living', () => {
 | 
			
		||||
    const people = [
 | 
			
		||||
| 
						 | 
				
			
			@ -57,6 +57,6 @@ describe('findTheOldest', () => {
 | 
			
		|||
        yearOfDeath: 1941,
 | 
			
		||||
      },
 | 
			
		||||
    ]
 | 
			
		||||
    expect(findTheOldest(people).name).toBe('Carly');
 | 
			
		||||
    expect(findTheOldest(people)).toBe('Carly');
 | 
			
		||||
  });
 | 
			
		||||
});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue