novo-elements
Version:
Bullhorn's NOVO Element Repository for Angular 2
32 lines (27 loc) • 822 B
text/typescript
// NG2
import { Component } from '@angular/core';
import { TestBed, async } from '@angular/core/testing';
// App
import { TooltipDirective } from './Tooltip';
({
selector: 'test-component',
template: `<div tooltip="test" tooltipPosition="right"></div>`
})
class TestComponent {}
describe('Elements: TooltipDirective', () => {
let fixture;
let component;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
TooltipDirective,
TestComponent
]
}).compileComponents();
fixture = TestBed.createComponent(TestComponent);
component = fixture.debugElement.componentInstance;
}));
it('should initialize with defaults', () => {
expect(component).toBeDefined();
});
});