mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
AAE-35340 Replace deprecated toPromise() usages with firstValueFrom / lastValueFrom (#11161)
This commit is contained in:
+2
-2
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { of, timer } from 'rxjs';
|
||||
import { firstValueFrom, of, timer } from 'rxjs';
|
||||
import { FormFieldModel, FormModel, GroupModel, FormFieldTypes, UnitTestingUtils } from '@alfresco/adf-core';
|
||||
import { FunctionalGroupWidgetComponent } from './functional-group.widget';
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
@@ -64,7 +64,7 @@ describe('FunctionalGroupWidgetComponent', () => {
|
||||
component.searchTerm.setValue(text);
|
||||
fixture.detectChanges();
|
||||
|
||||
await timer(300).toPromise();
|
||||
await firstValueFrom(timer(300));
|
||||
await fixture.whenStable();
|
||||
fixture.detectChanges();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user