( fixture: ComponentFixture<unknown>, value: unknown )
| 186 | >['content'] |
| 187 | |
| 188 | function expectPrimitiveValueIs( |
| 189 | fixture: ComponentFixture<unknown>, |
| 190 | value: unknown |
| 191 | ) { |
| 192 | expect(fixture.nativeElement.matches(':empty')).toBe(false) |
| 193 | const span = fixture.nativeElement.querySelector('span') |
| 194 | expect(span).toBeDefined() |
| 195 | expect(span.innerHTML).toEqual(value) |
| 196 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…