Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
MattL75 committed Apr 12, 2019
1 parent b325a59 commit aa01d6b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions library/src/lib/popover/popover.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { PopoverComponent } from './popover.component';
import { HashService } from '../utils/hash.service';
import { PopoverDirective } from './popover-directive/popover.directive';
import { PopoverModule } from './popover.module';

describe('PopoverComponent', () => {
let component: PopoverComponent;
Expand All @@ -11,7 +11,7 @@ describe('PopoverComponent', () => {

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [PopoverComponent, PopoverDirective]
imports: [PopoverModule]
}).compileComponents();

hashServiceSpy = TestBed.get(HashService);
Expand Down
3 changes: 1 addition & 2 deletions library/src/lib/popover/popover.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ import { PopoverDirective } from './popover-directive/popover.directive';
@Component({
selector: 'fd-popover',
templateUrl: './popover.component.html',
styleUrls: ['./popover.component.scss'],
providers: [HashService]
styleUrls: ['./popover.component.scss']
})
export class PopoverComponent implements OnInit {

Expand Down
2 changes: 2 additions & 0 deletions library/src/lib/popover/popover.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ import { PopoverControlComponent } from './popover-control/popover-control.compo
import { PopoverBodyComponent } from './popover-body/popover-body.component';
import { PopoverDirective } from './popover-directive/popover.directive';
import { PopoverContainer } from './popover-directive/popover-container';
import { HashService } from '../utils/hash.service';

@NgModule({
declarations: [PopoverComponent, PopoverControlComponent, PopoverBodyComponent, PopoverDirective, PopoverContainer],
imports: [CommonModule, UtilsModule],
exports: [PopoverComponent, PopoverControlComponent, PopoverBodyComponent, PopoverDirective],
providers: [HashService],
entryComponents: [PopoverContainer]
})
export class PopoverModule {}

0 comments on commit aa01d6b

Please sign in to comment.