92803321c982590671fe59a40f78d080cfe3e9a8
[portal/sdk.git] /
1 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2
3 import { SQLValidateSuccessDialogComponent } from './sql-validate-success-dialog.component';
4
5 describe('ValidateSuccessComponentComponent', () => {
6   let component: SQLValidateSuccessDialogComponent;
7   let fixture: ComponentFixture<SQLValidateSuccessDialogComponent>;
8
9   beforeEach(async(() => {
10     TestBed.configureTestingModule({
11       declarations: [ SQLValidateSuccessDialogComponent ]
12     })
13     .compileComponents();
14   }));
15
16   beforeEach(() => {
17     fixture = TestBed.createComponent(SQLValidateSuccessDialogComponent);
18     component = fixture.componentInstance;
19     fixture.detectChanges();
20   });
21
22   it('should create', () => {
23     expect(component).toBeTruthy();
24   });
25
26   it('should test ngOnChanges method',()=>{
27     component.tableObj='{"reportDataColumns":"tableObj","reportDataRows":"reportDataRows"}';
28     component.ngOnChanges();
29   })
30 });