message: Fix olm catalog source unit tests
diff: @@ -23,6 +23,7 @@ import {
  CreateSubscriptionYAMLProps,
  } from './catalog-source';
  import { PackageManifestList } from './package-manifest';
  +import { windowsToolsStorage } from '@console/kubevirt-plugin/src/components/create-vm-wizard/redux/initial-state/storage-tab-initial-state';
  describe(CatalogSourceDetails.displayName, () => {
  let wrapper: ShallowWrapper<CatalogSourceDetailsProps>;
  @@ -119,9 +120,6 @@ describe(CreateSubscriptionYAML.displayName, () => {
  let wrapper: ShallowWrapper<CreateSubscriptionYAMLProps>;
  beforeEach(() => {
  - const locationMock = new Location();
  - locationMock.search = `?pkg=${testPackageManifest.metadata.name}&catalog=ocs&catalogNamespace=default`;
  -
  wrapper = shallow(
  <CreateSubscriptionYAML
  match={{
  @@ -130,7 +128,10 @@ describe(CreateSubscriptionYAML.displayName, () => {
  path: '',
  params: { ns: 'default', pkgName: testPackageManifest.metadata.name },
  }}
  - location={locationMock}
  + location={{
  + ...window.location,
  + search: `?pkg=${testPackageManifest.metadata.name}&catalog=ocs&catalogNamespace=default`,
  + }}
  />,
  );
  });
  @@ -139,9 +140,9 @@ describe(CreateSubscriptionYAML.displayName, () => {
  expect(wrapper.find<any>(Firehose).props().resources).toEqual([
  {
  kind: referenceForModel(PackageManifestModel),
  + isList: false,
  name: testPackageManifest.metadata.name,
  namespace: 'default',
  - isList: false,
  prop: 'packageManifest',
  },
  {
  @@ -189,6 +190,8 @@ describe(CreateSubscriptionYAML.displayName, () => {
  .dive<CreateYAMLProps, {}>();
  const subTemplate = safeLoad(createYAML.props().template);
  + window.location.search = `?pkg=${testPackageManifest.metadata.name}&catalog=ocs&catalogNamespace=default`;
  +
  expect(subTemplate.kind).toContain(SubscriptionModel.kind);
  expect(subTemplate.spec.name).toEqual(testPackageManifest.metadata.name);
  expect(subTemplate.spec.channel).toEqual(testPackageManifest.status.channels[0].name);
  