Removed deprecated helper function async

This commit is contained in:
Giuseppe Digilio
2021-01-07 20:12:15 +01:00
parent 4d4e920f0d
commit e5af894077
418 changed files with 2114 additions and 1912 deletions

View File

@@ -1,4 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { PaginationComponentOptions } from '../../pagination/pagination-component-options.model';
import { TranslateModule } from '@ngx-translate/core';
@@ -36,7 +36,7 @@ describe('CollectionSelectComponent', () => {
currentPage: 1
});
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [TranslateModule.forRoot(), SharedModule, RouterTestingModule.withRoutes([])],
declarations: [],
@@ -69,7 +69,7 @@ describe('CollectionSelectComponent', () => {
checkbox = fixture.debugElement.query(By.css('input.collection-checkbox')).nativeElement;
});
it('should initially be unchecked',() => {
it('should initially be unchecked', () => {
expect(checkbox.checked).toBeFalsy();
});
@@ -94,7 +94,7 @@ describe('CollectionSelectComponent', () => {
spyOn(comp.confirm, 'emit').and.callThrough();
});
it('should emit the selected collections',() => {
it('should emit the selected collections', () => {
confirmButton.click();
expect(comp.confirm.emit).toHaveBeenCalled();
});
@@ -108,7 +108,7 @@ describe('CollectionSelectComponent', () => {
spyOn(comp.cancel, 'emit').and.callThrough();
});
it('should emit a cancel event',() => {
it('should emit a cancel event', () => {
cancelButton.click();
expect(comp.cancel.emit).toHaveBeenCalled();
});

View File

@@ -1,5 +1,5 @@
import { ItemSelectComponent } from './item-select.component';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { Item } from '../../../core/shared/item.model';
import { PaginationComponentOptions } from '../../pagination/pagination-component-options.model';
@@ -59,7 +59,7 @@ describe('ItemSelectComponent', () => {
currentPage: 1
});
beforeEach(async(() => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [TranslateModule.forRoot(), SharedModule, RouterTestingModule.withRoutes([])],
declarations: [],
@@ -92,7 +92,7 @@ describe('ItemSelectComponent', () => {
checkbox = fixture.debugElement.query(By.css('input.item-checkbox')).nativeElement;
});
it('should initially be unchecked',() => {
it('should initially be unchecked', () => {
expect(checkbox.checked).toBeFalsy();
});
@@ -117,7 +117,7 @@ describe('ItemSelectComponent', () => {
spyOn(comp.confirm, 'emit').and.callThrough();
});
it('should emit the selected items',() => {
it('should emit the selected items', () => {
confirmButton.click();
expect(comp.confirm.emit).toHaveBeenCalled();
});
@@ -131,7 +131,7 @@ describe('ItemSelectComponent', () => {
spyOn(comp.cancel, 'emit').and.callThrough();
});
it('should emit a cancel event',() => {
it('should emit a cancel event', () => {
cancelButton.click();
expect(comp.cancel.emit).toHaveBeenCalled();
});

View File

@@ -1,7 +1,10 @@
import {
ObjectSelectionDeselectAction, ObjectSelectionInitialDeselectAction,
ObjectSelectionInitialSelectAction, ObjectSelectionResetAction,
ObjectSelectionSelectAction, ObjectSelectionSwitchAction
ObjectSelectionDeselectAction,
ObjectSelectionInitialDeselectAction,
ObjectSelectionInitialSelectAction,
ObjectSelectionResetAction,
ObjectSelectionSelectAction,
ObjectSelectionSwitchAction
} from './object-select.actions';
import { objectSelectionReducer } from './object-select.reducer';