// import { RouterTestingModule } from '@angular/router/testing';
// import { BreadcrumbService } from '@core/breadcrumb';
// import { Config } from '@core/config';
// import { Spectator, createComponentFactory } from '@ngneat/spectator';
// import { BreadcrumbComponent } from '@shared/components/breadcrumb';
// import { MockComponent } from 'ng-mocks';

// import { PackageInspectionComponent } from './package-inspection.component';

// xdescribe('PackageInspectionComponent', () => {
//   let spectator: Spectator<PackageInspectionComponent>;
//   const createComponent = createComponentFactory({
//     component: PackageInspectionComponent,
//     imports: [RouterTestingModule],
//     mocks: [Config, BreadcrumbService],
//     declarations: [MockComponent(BreadcrumbComponent)],
//   });

//   let configMock: jasmine.SpyObj<Config>;
//   let breadcrumbServiceMock: jasmine.SpyObj<BreadcrumbService>;

//   beforeEach(async () => {
//     spectator = createComponent();
//     await spectator.fixture.whenStable();

//     configMock = spectator.inject(Config);
//     breadcrumbServiceMock = spectator.inject(BreadcrumbService);
//   });

//   it('should create', () => {
//     expect(spectator.component).toBeTruthy();
//   });

//   describe('get breadcrumbKey(): string', () => {
//     it('should call Config.get("process.ids.packageInspection") and return the result', () => {
//       const expected = 'expected';
//       configMock.get.and.returnValue(expected);

//       const actual = spectator.component.breadcrumbKey;

//       expect(configMock.get).toHaveBeenCalledWith('process.ids.packageInspection');
//       expect(actual).toBe(expected);
//     });
//   });

//   describe('ngOnInit()', () => {
//     it('should call createBreadcrumbIfNotExists()', () => {
//       const spy = spyOn(spectator.component, 'createBreadcrumbIfNotExists');

//       spectator.component.ngOnInit();

//       expect(spy).toHaveBeenCalled();
//     });
//   });

//   describe('template', () => {
//     it('should render the ShellBreadcrumbComponent and pass the breadcrumbKey as @Input() key', () => {
//       const expected = 'expected';
//       configMock.get.and.returnValue(expected);

//       spectator.detectComponentChanges();

//       const shellBreadcrumb = spectator.query(BreadcrumbComponent);
//       expect(shellBreadcrumb).toBeTruthy();
//       expect(shellBreadcrumb.key).toBe(expected);
//     });
//   });
// });
