summaryrefslogtreecommitdiffstats
path: root/public/src/app/rule-engine/condition/condition.component.spec.ts
blob: bb0d38a9fc7183ba05bdf823150d3dbb6c4960dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import {
  MatDialogModule,
  MatButtonModule,
  MatIconModule,
  MatDialogRef,
  MAT_DIALOG_DATA
} from '@angular/material';

import { ConditionComponent } from './condition.component';

describe('Condition Component', () => {
  let component: ConditionComponent;
  let fixture: ComponentFixture<ConditionComponent>;
  let de: DebugElement;
  let el: HTMLElement;

  beforeEach(
    async(() => {
      TestBed.configureTestingModule({
        imports: [
          FormsModule,
          HttpModule,
          MatDialogModule,
          MatButtonModule,
          MatIconModule
        ],
        providers: [],
        schemas: [CUSTOM_ELEMENTS_SCHEMA],
        declarations: [ConditionComponent]
      }).compileComponents();
    })
  );

  beforeEach(() => {
    // create component and test fixture
    fixture = TestBed.createComponent(ConditionComponent);
    // get test component from the fixture
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

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