mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-11 13:23:02 -05:00
17 lines
598 B
TypeScript
17 lines
598 B
TypeScript
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);
|
|
});
|
|
});
|
|
});
|