Skip to content

Commit

Permalink
chore: fix deprecated
Browse files Browse the repository at this point in the history
Co-Authored-by: Bertrand Zuchuat <[email protected]>
  • Loading branch information
Garfield-fr committed Sep 18, 2024
1 parent c06c531 commit 44eb788
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';

import { MenuWidgetComponent } from './menu-widget.component';
import { RouterTestingModule } from '@angular/router/testing';
import { TranslateModule } from '@ngx-translate/core';
import { RouterModule } from '@angular/router';

describe('MenuWidgetComponent', () => {
let component: MenuWidgetComponent;
Expand All @@ -27,7 +27,7 @@ describe('MenuWidgetComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
RouterModule.forRoot([]),
TranslateModule.forRoot()
],
declarations: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
*/
import { Location } from '@angular/common';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ActivatedRoute, ParamMap, convertToParamMap } from '@angular/router';
import { RouterTestingModule } from '@angular/router/testing';
import { ActivatedRoute, ParamMap, RouterModule, convertToParamMap } from '@angular/router';
import { TranslateFakeLoader, TranslateLoader, TranslateModule } from '@ngx-translate/core';
import { BehaviorSubject, Observable, of, throwError } from 'rxjs';
import { ActionStatus } from '../action-status';
Expand Down Expand Up @@ -84,7 +83,7 @@ describe('RecordDetailComponent', () => {
TranslateModule.forRoot({
loader: { provide: TranslateLoader, useClass: TranslateFakeLoader }
}),
RouterTestingModule,
RouterModule.forRoot([]),
RecordModule
],
providers: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
*/
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ActivatedRoute } from '@angular/router';
import { RouterTestingModule } from '@angular/router/testing';
import { ActivatedRoute, RouterModule } from '@angular/router';
import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { of } from 'rxjs';
import { RecordUiService } from '../record-ui.service';
Expand Down Expand Up @@ -79,7 +78,7 @@ describe('EditorComponent', () => {
imports: [
RecordModule,
BrowserAnimationsModule,
RouterTestingModule,
RouterModule.forRoot([]),
TranslateModule.forRoot()
],
providers: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { FormsModule } from '@angular/forms';
import { TypeaheadModule } from 'ngx-bootstrap/typeahead';
import { AddFieldEditorComponent } from './add-field-editor.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { RouterModule } from '@angular/router';
import { TranslateModule } from '@ngx-translate/core';
import { EditorComponent, RecordModule } from '@rero/ng-core';
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { TypeaheadModule } from 'ngx-bootstrap/typeahead';
import { AddFieldEditorComponent } from './add-field-editor.component';

describe('AddFieldEditorComponent', () => {
let component: AddFieldEditorComponent;
Expand All @@ -34,7 +34,7 @@ describe('AddFieldEditorComponent', () => {
imports: [
BrowserAnimationsModule,
HttpClientTestingModule,
RouterTestingModule,
RouterModule.forRoot([]),
RecordModule,
FormsModule,
TypeaheadModule.forRoot(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import { HttpClientTestingModule } from '@angular/common/http/testing';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { RouterTestingModule } from '@angular/router/testing';
import { RouterModule } from '@angular/router';
import { TranslateModule } from '@ngx-translate/core';
import { RecordModule } from '../../../record.module';
import { EditorComponent } from '../../editor.component';
Expand All @@ -36,7 +36,7 @@ describe('LabelComponent', () => {
imports: [
BrowserAnimationsModule,
HttpClientTestingModule,
RouterTestingModule,
RouterModule.forRoot([]),
RecordModule,
TranslateModule.forRoot()
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { RouterModule } from '@angular/router';
import { TranslateModule } from '@ngx-translate/core';
import { CallbackArrayFilterPipe } from '../../pipe/callback-array-filter.pipe';
import { MenuComponent } from './menu.component';
Expand All @@ -27,7 +27,7 @@ describe('MenuComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
RouterModule.forRoot([]),
TranslateModule.forRoot()
],
declarations: [ MenuComponent, CallbackArrayFilterPipe ]
Expand Down

0 comments on commit 44eb788

Please sign in to comment.