/* tslint:disable:no-unused-variable typedef */
import { Component } from 'angular2/core';
import {
  afterEach,
  beforeEach,
  describe,
  fdescribe,
  xdescribe,
  expect,
  it,
  fit,
  xit,
  beforeEachProviders,
  inject,
  TestComponentBuilder
} from 'angular2/testing';

import { AuthService } from '../../modules/auth/auth-service';
import { ProjectService } from '../../modules/project/project-service';
import { Projects } from './projects';


@Component({
  template: '',
  directives: [Projects]
})
class 
 {}


describe('Projects', () => {
  beforeEachProviders(() => [AuthService, ProjectService]);

  it('should display a list of projects', inject([TestComponentBuilder], tcb => {
    tcb.createAsync(Projects)
      .then(fixture => {
        fixture.detectChanges();
        let compiled = fixture.nativeElement;

        return fixture.componentInstance.loaded.then(() => {
          fixture.detectChanges();
          expect(compiled.querySelectorAll('li').length).toBe(2);
        });
      });
  }));
});

TestComponent