SHARE
TWEET

Untitled

Corjaantje May 20th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { async, ComponentFixture, TestBed } from '@angular/core/testing';
  2. import { FormsModule, ReactiveFormsModule  } from '@angular/forms';
  3. import { CompetitionService } from '../../services/competitionService/competition.service';
  4. import { AngularFireModule } from 'angularfire2';
  5. import { environment } from '../../../environments/environment.prod';
  6. import { AngularFireAuth} from 'angularfire2/auth';
  7. import { AngularFireDatabase } from 'angularfire2/database';
  8. import { UserService } from '../../services/userService/user.service';
  9. import { AuthService } from '../../services/authService/auth.service';
  10. import { RouterTestingModule } from '@angular/router/testing';
  11. import { GameService } from '../../services/gameService/game.service';
  12. import { HeaderComponent} from '../../components/header/header.component';
  13. import { CompetitionCreateComponent } from '../../components/competition-create/competition-create.component';
  14. import { CompetitionListComponent } from '../../components/competition-list/competition-list.component';
  15. import { CompetitionDetailComponent } from '../../components/competition-detail/competition-detail.component';
  16. import { GameListComponent } from '../../components/game-list/game-list.component';
  17. import { CompetitionDetailUsersComponent} from '../../components/competition-detail-users/competition-detail-users.component';
  18. // tslint:disable-next-line:max-line-length
  19. import { CompetitionDetailWinnerselectionComponent } from '../../components/competition-detail-winnerselection/competition-detail-winnerselection.component';
  20. import { ProfilePageComponent } from './profile-page.component';
  21. import { ProfileCompetitionsListComponent} from '../../components/profile-competitions-list/profile-competitions-list.component';
  22. import { ProfileGamesListComponent} from '../../components/profile-games-list/profile-games-list.component';
  23.  
  24. describe('ProfilePageComponent', () => {
  25.   let component: ProfilePageComponent;
  26.   let fixture: ComponentFixture<ProfilePageComponent>;
  27.  
  28.   beforeEach(async(() => {
  29.     TestBed.configureTestingModule({
  30.       declarations: [ ProfilePageComponent, HeaderComponent, CompetitionCreateComponent, CompetitionListComponent,
  31.         CompetitionDetailComponent, GameListComponent, CompetitionDetailUsersComponent, CompetitionDetailWinnerselectionComponent,
  32.         ProfileCompetitionsListComponent, ProfileGamesListComponent ],
  33.       imports: [FormsModule, ReactiveFormsModule, AngularFireModule.initializeApp(environment.firebase), RouterTestingModule],
  34.       providers: [CompetitionService, AngularFireAuth, AngularFireDatabase, UserService, AuthService, GameService ]
  35.     })
  36.     .compileComponents();
  37.   }));
  38.  
  39.   beforeEach(() => {
  40.     fixture = TestBed.createComponent(ProfilePageComponent);
  41.     component = fixture.componentInstance;
  42.     fixture.detectChanges();
  43.   });
  44.  
  45.   it('should create', () => {
  46.     expect(component).toBeTruthy();
  47.   });
  48. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top