diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2019-10-11 12:33:57 +0530 |
---|---|---|
committer | Arundathi Patil <arundpil@in.ibm.com> | 2019-10-11 12:34:29 +0530 |
commit | d71ba83a6075950877963fef084a5f6e4aa598ba (patch) | |
tree | cdc6b378c65b13ee0860b5da398a74bf45d18e2b /cds-ui/client/JointJS-POC-In-Progress/app.component.spec.ts | |
parent | ce9b0657f0614c993c36381c0ab301d7b4337db5 (diff) |
JointJS Prototype
Added JointJS POC
Issue-ID: CCSDK-1765
Change-Id: Ia8a6e913e3d4f10f3fdc0e1ec377304e49879240
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'cds-ui/client/JointJS-POC-In-Progress/app.component.spec.ts')
-rw-r--r-- | cds-ui/client/JointJS-POC-In-Progress/app.component.spec.ts | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/cds-ui/client/JointJS-POC-In-Progress/app.component.spec.ts b/cds-ui/client/JointJS-POC-In-Progress/app.component.spec.ts new file mode 100644 index 000000000..8de310a78 --- /dev/null +++ b/cds-ui/client/JointJS-POC-In-Progress/app.component.spec.ts @@ -0,0 +1,35 @@ +import { TestBed, async } from '@angular/core/testing'; +import { RouterTestingModule } from '@angular/router/testing'; +import { AppComponent } from './app.component'; + +describe('AppComponent', () => { + beforeEach(async(() => { + TestBed.configureTestingModule({ + imports: [ + RouterTestingModule + ], + declarations: [ + AppComponent + ], + }).compileComponents(); + })); + + it('should create the app', () => { + const fixture = TestBed.createComponent(AppComponent); + const app = fixture.debugElement.componentInstance; + expect(app).toBeTruthy(); + }); + + it(`should have as title 'jointJS-designer'`, () => { + const fixture = TestBed.createComponent(AppComponent); + const app = fixture.debugElement.componentInstance; + expect(app.title).toEqual('jointJS-designer'); + }); + + it('should render title in a h1 tag', () => { + const fixture = TestBed.createComponent(AppComponent); + fixture.detectChanges(); + const compiled = fixture.debugElement.nativeElement; + expect(compiled.querySelector('h1').textContent).toContain('Welcome to jointJS-designer!'); + }); +}); |