midryndhil (2) [Avatar] Offline
#1
Hi,

In listing 2.5 seems there is a copy paste/error:

it('should get and set id properly', () => {
contact.setId(1);
const expected = contact.getId();
expect(expectedName).toEqual('Liz');
});



should be:

  it('should get and set id properly', () => {
    contact.setId(1);
    const expectedName = contact.getId();
    expect(expectedName).toEqual(1);
  });


Regards,
Jesse Palmer (38) [Avatar] Offline
#2
This will be fixed in the next version of the MEAP. Thank you!