import { render } from '@testing-library/angular'; import { ChildComponent } from './child.component'; describe('ChildComponent', () => { describe('When typing nothing and clicking on Validate', () => { test('Then show "Title is required" error message and no http request has been sent', async () => { await render(ChildComponent); }); }); describe('When typing "Good" and clicking on Validate', () => { test('Then show "Title is Good" message, no error message and send a http request to the backend', async () => { await render(ChildComponent); }); }); });