mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-13 06:13:03 -05:00
fix(test): move all test apps
This commit is contained in:
22
apps/testing/create-harness/src/app/app.component.spec.ts
Normal file
22
apps/testing/create-harness/src/app/app.component.spec.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { render } from '@testing-library/angular';
|
||||
import { AppComponent } from './app.component';
|
||||
|
||||
describe('AppComponent', () => {
|
||||
describe('When clicking 2 times on plus button of first slider', () => {
|
||||
test('Then value is 16', async () => {
|
||||
await render(AppComponent);
|
||||
});
|
||||
});
|
||||
|
||||
describe('When clicking 1 time on plus button and two times on minus button of first slider', () => {
|
||||
test('Then value is still 10', 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