Skip to content

Commit

Permalink
fix: fix ngc
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsogl committed Jul 26, 2018
1 parent 843ff7f commit cca9cad
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/tooltip.spec.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
import {
AfterViewInit,
Component, DebugElement, ElementRef, ViewChild,
Component,
DebugElement,
ElementRef,
ViewChild,
ViewContainerRef
} from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { TooltipsModule } from './tooltips.module';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { IonicModule } from 'ionic-angular';
import { Tooltip } from './tooltip.directive';

import { TooltipBox } from './tooltip-box.component';
import { Tooltip } from './tooltip.directive';
import { TooltipsModule } from './tooltips.module';

@Component({
selector: 'tooltip-view',
template: '<button #btn tooltip="Hello world" [duration]="1000" [active]="active">Click me</button>'
template:
'<button #btn tooltip="Hello world" [duration]="1000" [active]="active">Click me</button>'
})
export class TestPage implements AfterViewInit {

class TestPage implements AfterViewInit {
@ViewChild('btn') button: ElementRef;

@ViewChild(Tooltip) tooltip: Tooltip;
Expand All @@ -37,12 +41,9 @@ export class TestPage implements AfterViewInit {
_component: this
});
}

}


describe('Tooltip', () => {

let de: DebugElement,
comp: TestPage,
fixture: ComponentFixture<TestPage>,
Expand Down Expand Up @@ -108,5 +109,4 @@ describe('Tooltip', () => {
fixture.detectChanges();
expect(getTooltipBox().getNativeElement().innerText).toEqual('Hello world');
});

});
});

0 comments on commit cca9cad

Please sign in to comment.