Skip to content

Instantly share code, notes, and snippets.

java.lang.AssertionError<...>
in IndexControllerTest: shouldReturnOkStatus
@Component({
selector: 'component-under-test',
templateUrl: './component-under-test.component.html'
})
export class ComponentUnderTestComponent{
@Input() input;
processInput(): string {
return 'processed ' + this.input;
it('should return "processed testInput"', () => {
component.input = 'testInput';
expect(component.processInput()).toEqual('processed testInput');
});