mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
refactor(challenge24): clarify describe block
This commit is contained in:
@@ -2,14 +2,21 @@ import { render } from '@testing-library/angular';
|
|||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
|
|
||||||
describe('AppComponent', () => {
|
describe('AppComponent', () => {
|
||||||
test('select first slider and value must be 16 after clicking twice on plus button', async () => {
|
describe('When clicking 2 times on plus button of first slider', () => {
|
||||||
await render(AppComponent);
|
test('Then value is 16', async () => {
|
||||||
|
await render(AppComponent);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
test('select first slider and click 1 time on plus button and twice on minus button, slider must be 10 again', async () => {
|
describe('When clicking 1 time on plus button and two times on minus button of first slider', () => {
|
||||||
await render(AppComponent);
|
test('Then value is still 10', async () => {
|
||||||
|
await render(AppComponent);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
test('second slider is disabled, click 4 times on first slider and slider 2 must be enabled', async () => {
|
|
||||||
await render(AppComponent);
|
describe('When clicking 4 times on plus button of slider 1', () => {
|
||||||
|
test('Then slider 2 is enabled', async () => {
|
||||||
|
await render(AppComponent);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user