'You provide 'undefined' where a stream was expected. You can provide Observable, promise, Array, or Iterable

getting the error You provide 'undefined' where a stream was expected. You can provide Observable, promise, Array, or Iterable. While running basic test case i.e

it('check component',()=>{

expect(component).tobetruthy(); });

when i comment the test case it works perfectly fine



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source