Catalog alignment
[sdc.git] / catalog-ui / src / app / ng2 / pages / composition / palette / palette-element / palette-element.component.spec.ts
1 import {async, ComponentFixture} from "@angular/core/testing";
2 import {ConfigureFn, configureTests} from "../../../../../../jest/test-config.helper";
3 import {NO_ERRORS_SCHEMA} from "@angular/core";
4 import {PaletteElementComponent} from "./palette-element.component";
5 import {ResourceNamePipe} from "../../../../pipes/resource-name.pipe";
6
7 describe('palette element component', () => {
8
9     let fixture: ComponentFixture<PaletteElementComponent>;
10
11     beforeEach(
12         async(() => {
13             const configure: ConfigureFn = testBed => {
14                 testBed.configureTestingModule({
15                     declarations: [PaletteElementComponent, ResourceNamePipe],
16                     imports: [],
17                     schemas: [NO_ERRORS_SCHEMA]
18                 });
19             };
20
21             configureTests(configure).then(testBed => {
22                 fixture = testBed.createComponent(PaletteElementComponent);
23             });
24         })
25     );
26
27     it('should match current snapshot of palette element component', () => {
28         expect(fixture).toMatchSnapshot();
29     });
30 });