feat(challenge14): race condition with rxjs

This commit is contained in:
thomas laforge
2023-01-11 16:20:13 +01:00
parent b6e6886a46
commit c28c9cc7fc
21 changed files with 2622 additions and 1408 deletions

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