/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
adev/shared-docs/components/select/select.component.spec.ts
32 строки
828 B
Matthieu Riegler
docs(docs-infra): Modernize tests
05 янв 2026, 19:47
05 янв 2026, 19:47
3a85031
Код
Авторство
О чём код?
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {ComponentFixture, TestBed} from '@angular/core/testing'; import {Select} from './select.component'; describe('Select', () => { let component: Select; let fixture: ComponentFixture<Select>; beforeEach(async () => { fixture = TestBed.createComponent(Select); component = fixture.componentInstance; // Sets the required inputs fixture.componentRef.setInput('selectId', 'id'); fixture.componentRef.setInput('name', 'name'); fixture.componentRef.setInput('options', []); await fixture.whenStable(); }); it('should create', () => { expect(component).toBeTruthy(); }); });