blob: 8234551ee760e52b6115128b262451dfeeffa953 [file] [log] [blame]
Sean Condon83fc39f2018-04-19 18:56:13 +01001import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2
Sean Condonf4f54a12018-10-10 23:25:46 +01003import { LogService } from '../../log.service';
4import { ConsoleLoggerService } from '../../consolelogger.service';
5import { IconComponent } from './icon.component';
6import { IconService } from '../icon.service';
Sean Condon49e15be2018-05-16 16:58:29 +01007
8class MockIconService {}
Sean Condon83fc39f2018-04-19 18:56:13 +01009
10describe('IconComponent', () => {
Sean Condon49e15be2018-05-16 16:58:29 +010011 let log: LogService;
Sean Condon83fc39f2018-04-19 18:56:13 +010012
Sean Condon49e15be2018-05-16 16:58:29 +010013 beforeEach(() => {
14 log = new ConsoleLoggerService();
Sean Condon83fc39f2018-04-19 18:56:13 +010015
Sean Condon49e15be2018-05-16 16:58:29 +010016 TestBed.configureTestingModule({
17 declarations: [ IconComponent ],
18 providers: [
19 { provide: LogService, useValue: log },
20 { provide: IconService, useClass: MockIconService },
21 ]
22 });
23 });
Sean Condon83fc39f2018-04-19 18:56:13 +010024
Sean Condon49e15be2018-05-16 16:58:29 +010025 it('should create', () => {
26 const fixture = TestBed.createComponent(IconComponent);
27 const component = fixture.componentInstance;
28 expect(component).toBeTruthy();
29 });
Sean Condon83fc39f2018-04-19 18:56:13 +010030});