summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/sql/sql-validate-success-dialog/sql-validate-success-dialog.component.spec.ts
blob: 92803321c982590671fe59a40f78d080cfe3e9a8 (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
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { SQLValidateSuccessDialogComponent } from './sql-validate-success-dialog.component';

describe('ValidateSuccessComponentComponent', () => {
  let component: SQLValidateSuccessDialogComponent;
  let fixture: ComponentFixture<SQLValidateSuccessDialogComponent>;

  beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [ SQLValidateSuccessDialogComponent ]
    })
    .compileComponents();
  }));

  beforeEach(() => {
    fixture = TestBed.createComponent(SQLValidateSuccessDialogComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

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

  it('should test ngOnChanges method',()=>{
    component.tableObj='{"reportDataColumns":"tableObj","reportDataRows":"reportDataRows"}';
    component.ngOnChanges();
  })
});