mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
fix(challenge19): fix describe block
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { CounterComponent } from './counter.component';
|
||||
|
||||
describe(CounterComponent.name, () => {
|
||||
describe('Given an initualValue of 10', async () => {
|
||||
describe('Given an initualValue of 10', () => {
|
||||
it('listen to output using createOutputSpy', () => {
|
||||
cy.mount(CounterComponent);
|
||||
});
|
||||
|
||||
@@ -2,22 +2,22 @@ import { render } from '@testing-library/angular';
|
||||
import { CounterComponent } from './counter.component';
|
||||
|
||||
describe('CounterComponent', () => {
|
||||
describe('Given an initualValue of 10', async () => {
|
||||
describe('Given an initualValue of 10', () => {
|
||||
test('Then counterValue is 10', async () => {
|
||||
await render(CounterComponent);
|
||||
});
|
||||
|
||||
describe('When clicking 5 times on increment button', async () => {
|
||||
describe('When clicking 5 times on increment button', () => {
|
||||
test('Then counterValue is 15', async () => {
|
||||
await render(CounterComponent);
|
||||
});
|
||||
});
|
||||
|
||||
describe('When clicking 2 times on decrement button', async () => {
|
||||
describe('When clicking 2 times on decrement button', () => {
|
||||
test('Then counterValue is 8', async () => {
|
||||
await render(CounterComponent);
|
||||
});
|
||||
describe('When clicking on Send ', async () => {
|
||||
describe('When clicking on Send ', () => {
|
||||
test('Then emitted value is 8', async () => {
|
||||
await render(CounterComponent);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user