mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit moves zoneless from experimental to developer preview. * Update tag on provider API * Remove "experimental" from provider name * Move documentation from "experimental features" to "Best practives -> Performance" (at least temporarily until there is a better place) BREAKING CHANGE: `provideExperimentalZonelessChangeDetection` is renamed to `provideZonelessChangeDetection` as it is now "Developer Preview" rather than "Experimental". PR Close #60748
31 lines
838 B
TypeScript
31 lines
838 B
TypeScript
/*!
|
|
* @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 {TextField} from './text-field.component';
|
|
import {provideZonelessChangeDetection} from '@angular/core';
|
|
|
|
describe('TextField', () => {
|
|
let component: TextField;
|
|
let fixture: ComponentFixture<TextField>;
|
|
|
|
beforeEach(() => {
|
|
TestBed.configureTestingModule({
|
|
imports: [TextField],
|
|
providers: [provideZonelessChangeDetection()],
|
|
});
|
|
fixture = TestBed.createComponent(TextField);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|