UNPKG

novo-elements

Version:

Bullhorn's NOVO Element Repository for Angular 2

108 lines (92 loc) 3.05 kB
// NG2 import { TestBed, async } from '@angular/core/testing'; // APP import { PopOverContent } from './PopOverContent'; describe('Elements: PopOverContent', () => { let fixture; let component; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ PopOverContent ], }).compileComponents(); fixture = TestBed.createComponent(PopOverContent); component = fixture.debugElement.componentInstance; })); it('should initialize correctly', () => { expect(component).toBeTruthy(); }); describe('Method: ngAfterViewInit()', () => { it('should be defined.', () => { expect(component.ngAfterViewInit).toBeDefined(); component.ngAfterViewInit(); }); }); describe('Method: ngAfterViewInit()', () => { it('should be defined.', () => { expect(component.ngAfterViewInit).toBeDefined(); component.ngAfterViewInit(); }); }); describe('Method: toggle()', () => { it('should be defined.', () => { expect(component.toggle).toBeDefined(); // component.toggle(); }); }); describe('Method: show()', () => { it('should be defined.', () => { expect(component.show).toBeDefined(); component.show(); }); }); describe('Method: hide()', () => { it('should be defined.', () => { expect(component.hide).toBeDefined(); // component.hide(); }); }); describe('Method: hideFromPopover()', () => { it('should be defined.', () => { expect(component.hideFromPopover).toBeDefined(); component.hideFromPopover(); }); }); describe('Method: positionElements()', () => { it('should be defined.', () => { expect(component.positionElements).toBeDefined(); // component.positionElements(); }); }); describe('Method: position()', () => { it('should be defined.', () => { expect(component.position).toBeDefined(); // component.position(); }); }); describe('Method: offset()', () => { it('should be defined.', () => { expect(component.offset).toBeDefined(); // component.offset(); }); }); describe('Method: getStyle()', () => { it('should be defined.', () => { expect(component.getStyle).toBeDefined(); // component.getStyle(); }); }); describe('Method: isStaticPositioned()', () => { it('should be defined.', () => { expect(component.isStaticPositioned).toBeDefined(); // component.isStaticPositioned(); }); }); describe('Method: parentOffsetEl()', () => { it('should be defined.', () => { expect(component.parentOffsetEl).toBeDefined(); // component.parentOffsetEl(); }); }); });