see https://v17.angular.io/guide/standalone-migration I executed: ng g @angular/core:standalone and selected "Convert all components, directives and pipes to standalone"
24 lines
615 B
TypeScript
24 lines
615 B
TypeScript
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
|
|
import { TextWidgetComponent } from './text-widget.component';
|
|
|
|
describe('TextWidgetComponent', () => {
|
|
let component: TextWidgetComponent;
|
|
let fixture: ComponentFixture<TextWidgetComponent>;
|
|
|
|
beforeEach(async () => {
|
|
await TestBed.configureTestingModule({
|
|
imports: [TextWidgetComponent]
|
|
})
|
|
.compileComponents();
|
|
|
|
fixture = TestBed.createComponent(TextWidgetComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|