From 2f1de6bea3ec93db99a5384c1b91e2c878c0e35f Mon Sep 17 00:00:00 2001 From: Gabriel De Los Rios Date: Thu, 11 Dec 2025 21:09:57 -0300 Subject: [PATCH] test: update testbed --- src/app/app.spec.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/app/app.spec.ts b/src/app/app.spec.ts index e6297c5..d7c96e4 100644 --- a/src/app/app.spec.ts +++ b/src/app/app.spec.ts @@ -1,10 +1,13 @@ import { TestBed } from '@angular/core/testing'; import { App } from './app'; +import { strings } from './strings'; +import { STRINGS_INJECTOR } from './app.config'; describe('App', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [App], + providers: [{ provide: STRINGS_INJECTOR, useValue: strings }], }).compileComponents(); }); @@ -14,10 +17,4 @@ describe('App', () => { expect(app).toBeTruthy(); }); - it('should render title', () => { - const fixture = TestBed.createComponent(App); - fixture.detectChanges(); - const compiled = fixture.nativeElement as HTMLElement; - expect(compiled.querySelector('h1')?.textContent).toContain('Hello, agenda-web'); - }); });