Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalerba committed Dec 3, 2016
1 parent b44b0fb commit aaf4aa4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/lib/sidenav/sidenav.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import {fakeAsync, async, tick, ComponentFixture, TestBed} from '@angular/core/t
import {Component} from '@angular/core';
import {By} from '@angular/platform-browser';
import {MdSidenav, MdSidenavModule, MdSidenavToggleResult} from './sidenav';
import {A11yModule} from "../core/a11y/index";
import {A11yModule} from '../core/a11y/index';
import {PlatformModule} from '../core/platform/platform';


function endSidenavTransition(fixture: ComponentFixture<any>) {
Expand All @@ -16,10 +17,9 @@ function endSidenavTransition(fixture: ComponentFixture<any>) {


describe('MdSidenav', () => {

beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [MdSidenavModule.forRoot(), A11yModule.forRoot()],
imports: [MdSidenavModule.forRoot(), A11yModule.forRoot(), PlatformModule.forRoot()],
declarations: [
BasicTestApp,
SidenavLayoutTwoSidenavTestApp,
Expand Down
8 changes: 0 additions & 8 deletions src/lib/sidenav/sidenav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ import {A11yModule} from '../core/a11y/index';
import {FocusTrap} from '../core/a11y/focus-trap';


/** Exception thrown when two MdSidenav are matching the same side. */
export class MdDuplicatedSidenavError extends MdError {
constructor(align: string) {
super(`A sidenav was already declared for 'align="${align}"'`);
}
}


/** Sidenav toggle promise result. */
export class MdSidenavToggleResult {
constructor(public type: 'open' | 'close', public animationFinished: boolean) {}
Expand Down

0 comments on commit aaf4aa4

Please sign in to comment.