import { Logger } from '@core/logger';
import { createServiceFactory, SpectatorService } from '@ngneat/spectator';
import { SearchService } from '@generated/swagger/cat-search-api';
import {
  PackageService,
  RemiService,
  ReturnService,
  StockService,
  SupplierService,
} from '@generated/swagger/inventory-api';
import { DomainRemissionService } from './remission.service';
import { DateAdapter } from '@ui/common';

describe('DomainRemissionService', () => {
  let service: SpectatorService<DomainRemissionService>;
  const createService = createServiceFactory({
    service: DomainRemissionService,
    mocks: [
      RemiService,
      StockService,
      SupplierService,
      PackageService,
      ReturnService,
      SearchService,
      Logger,
      DateAdapter,
    ],
  });

  beforeEach(() => {
    service = createService();
  });

  it('should be created', () => {
    expect(service).toBeTruthy();
  });
});
