O'Reilly logo
  • Krzysztof Safjanowski thinks this is interesting:

expect(com.items).toBeDefined();

From

Cover of Angular Test-Driven Development - Second Edition

Note

It have to be expect(comp.items).toBeDefined() - as long as comp = fixture.componentsInstance few lines above