aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/services/artifact-config.service.spec.ts
blob: bbbd387b4e5fcf03bf5b94b1b79aa22bdb921ec4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { TestBed, inject } from '@angular/core/testing';

import { ArtifactConfigService } from './artifact-config.service';
import {CacheService} from "./cache.service";

describe('ArtifactConfigService', () => {
  beforeEach(() => {
    const cacheServiceMock = {
      get: jest.fn(() => {
        return {
          artifact: null
        }
      })
    };
    TestBed.configureTestingModule({
      providers: [ArtifactConfigService, {provide: CacheService, useValue: cacheServiceMock}]
    });
  });

  it('should be created', inject([ArtifactConfigService], (service: ArtifactConfigService) => {
    expect(service).toBeTruthy();
  }));
});