This repository was archived by the owner on Oct 1, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +28
-11
lines changed Expand file tree Collapse file tree 3 files changed +28
-11
lines changed Original file line number Diff line number Diff line change 1+ import { SocialSharingComponent } from './social-sharing/social-sharing.component' ;
12import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
23
34import { MemberComponent } from './member.component' ;
5+ import { MaterialModule } from '../material/material.module' ;
6+ import { NO_ERRORS_SCHEMA } from '@angular/core' ;
47
58describe ( 'MemberComponent' , ( ) => {
69 let component : MemberComponent ;
710 let fixture : ComponentFixture < MemberComponent > ;
811
9- beforeEach ( async ( ( ) => {
10- TestBed . configureTestingModule ( {
11- declarations : [ MemberComponent ]
12+ beforeEach (
13+ async ( ( ) => {
14+ TestBed . configureTestingModule ( {
15+ declarations : [ MemberComponent ] ,
16+ schemas : [ NO_ERRORS_SCHEMA ]
17+ } ) . compileComponents ( ) ;
1218 } )
13- . compileComponents ( ) ;
14- } ) ) ;
19+ ) ;
1520
1621 beforeEach ( ( ) => {
1722 fixture = TestBed . createComponent ( MemberComponent ) ;
1823 component = fixture . componentInstance ;
24+ component . member = {
25+ name : 'ben lesh' ,
26+ role : 'lead' ,
27+ githubUrl : '' ,
28+ avatar : '' ,
29+ twitterUrl : '' ,
30+ linkedinUrl : '' ,
31+ bio : ''
32+ } ;
1933 fixture . detectChanges ( ) ;
2034 } ) ;
2135
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ import { IMember } from './team.models';
77 templateUrl : './member.component.html' ,
88 styleUrls : [ './member.component.scss' ]
99} )
10- export class MemberComponent {
10+ export class MemberComponent {
1111 @Input ( ) member : IMember ;
1212}
Original file line number Diff line number Diff line change 11import { async , ComponentFixture , TestBed } from '@angular/core/testing' ;
22
33import { SocialSharingComponent } from './social-sharing.component' ;
4+ import { MaterialModule } from '../../material/material.module' ;
45
56describe ( 'SocialSharingComponent' , ( ) => {
67 let component : SocialSharingComponent ;
78 let fixture : ComponentFixture < SocialSharingComponent > ;
89
9- beforeEach ( async ( ( ) => {
10- TestBed . configureTestingModule ( {
11- declarations : [ SocialSharingComponent ]
10+ beforeEach (
11+ async ( ( ) => {
12+ TestBed . configureTestingModule ( {
13+ imports : [ MaterialModule ] ,
14+ declarations : [ SocialSharingComponent ]
15+ } ) . compileComponents ( ) ;
1216 } )
13- . compileComponents ( ) ;
14- } ) ) ;
17+ ) ;
1518
1619 beforeEach ( ( ) => {
1720 fixture = TestBed . createComponent ( SocialSharingComponent ) ;
You can’t perform that action at this time.
0 commit comments