Spaces:
Sleeping
Sleeping
| import { ComponentFixture, TestBed } from '@angular/core/testing'; | |
| import { App } from './app'; | |
| describe('App component', () => { | |
| let fixture: ComponentFixture<App>; | |
| beforeEach(async () => { | |
| await TestBed.configureTestingModule({ imports: [App] }).compileComponents(); | |
| fixture = TestBed.createComponent(App); | |
| fixture.detectChanges(); | |
| }); | |
| it('renders the studio shell and disabled generate button', () => { | |
| const text = fixture.nativeElement.textContent.replace(/\s+/g, ' ').trim(); | |
| expect(text).toContain('MplusKassa Studio'); | |
| expect(text).toContain('Maak een menu-afbeelding.'); | |
| expect(fixture.nativeElement.querySelector('.primary').disabled).toBe(true); | |
| }); | |
| }); | |