fix(challenge19): fix describe block

This commit is contained in:
ThomasL
2023-07-13 15:39:16 +02:00
parent 5c30249fb4
commit 257666cea1
2 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
import { CounterComponent } from './counter.component'; import { CounterComponent } from './counter.component';
describe(CounterComponent.name, () => { describe(CounterComponent.name, () => {
describe('Given an initualValue of 10', async () => { describe('Given an initualValue of 10', () => {
it('listen to output using createOutputSpy', () => { it('listen to output using createOutputSpy', () => {
cy.mount(CounterComponent); cy.mount(CounterComponent);
}); });

View File

@@ -2,22 +2,22 @@ import { render } from '@testing-library/angular';
import { CounterComponent } from './counter.component'; import { CounterComponent } from './counter.component';
describe('CounterComponent', () => { describe('CounterComponent', () => {
describe('Given an initualValue of 10', async () => { describe('Given an initualValue of 10', () => {
test('Then counterValue is 10', async () => { test('Then counterValue is 10', async () => {
await render(CounterComponent); 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 () => { test('Then counterValue is 15', async () => {
await render(CounterComponent); 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 () => { test('Then counterValue is 8', async () => {
await render(CounterComponent); await render(CounterComponent);
}); });
describe('When clicking on Send ', async () => { describe('When clicking on Send ', () => {
test('Then emitted value is 8', async () => { test('Then emitted value is 8', async () => {
await render(CounterComponent); await render(CounterComponent);
}); });