mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-13 06:13:03 -05:00
feat(challenge14): race condition with rxjs
This commit is contained in:
21
apps/rxjs-race-condition/src/app/app.component.cy.ts
Normal file
21
apps/rxjs-race-condition/src/app/app.component.cy.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { MatDialogModule } from '@angular/material/dialog';
|
||||
import { AppComponent } from './app.component';
|
||||
|
||||
describe(AppComponent.name, () => {
|
||||
beforeEach(() => {
|
||||
TestBed.overrideComponent(AppComponent, {
|
||||
add: {
|
||||
imports: [MatDialogModule],
|
||||
providers: [],
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
it('renders', () => {
|
||||
cy.mount(AppComponent);
|
||||
|
||||
cy.get('button').click();
|
||||
cy.get('ul li').should('have.length', '3');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user