mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-11 21:33:02 -05:00
22 lines
498 B
TypeScript
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');
|
|
});
|
|
});
|