The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

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 (53) [Avatar] Offline
#2
This will be fixed in the next version of the MEAP. Thank you!