Files
angular-challenges/apps/rxjs-race-condition/src/app/app.component.cy.ts
2023-01-11 16:20:13 +01:00

22 lines
498 B
TypeScript

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');
});
});