In one of my components I have this simple getMethod, in which I ask my service, which works with LocalStorage, to put the data it has into my array.
getEintraege(): void {
this.eintraege = JSON.parse(this.eintragService.getData('token')!) || []
}
All I could understand is that I start the test-Method like this:
it('should display eintraege or none')
Could you help me with the methods I could use to test, if my array this.eintraege is empty or has items in it?