Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Romuald Caplier committed Sep 20, 2024
1 parent 0772493 commit 11b719b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'
import { ImportRecordComponent } from './import-record.component'
import { ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'
import { Router } from '@angular/router'
import { TranslateService } from '@ngx-translate/core'
import { TranslateModule, TranslateService } from '@ngx-translate/core'
import { NotificationsService } from '@geonetwork-ui/feature/notifications'
import { RecordsRepositoryInterface } from '@geonetwork-ui/common/domain/repository/records-repository.interface'
import { of, throwError } from 'rxjs'
import { MockBuilder, MockProviders } from 'ng-mocks'
import { MockBuilder, MockComponent, MockModule, MockProviders } from 'ng-mocks'

describe('ImportRecordComponent', () => {
let component: ImportRecordComponent
Expand All @@ -22,6 +22,10 @@ describe('ImportRecordComponent', () => {

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [
MockComponent(ImportRecordComponent),
MockModule(TranslateModule.forRoot()),
],
providers: [
MockProviders(
Router,
Expand Down

0 comments on commit 11b719b

Please sign in to comment.