@ -14,7 +14,7 @@ import {
|
||||
} from 'angular2/test_lib';
|
||||
import {DebugElement} from 'angular2/src/core/debug/debug_element';
|
||||
|
||||
import {Component, View, ViewMetadata, UrlResolver, bind} from 'angular2/core';
|
||||
import {Component, View, ViewMetadata, UrlResolver, bind, provide} from 'angular2/core';
|
||||
|
||||
import {MdButton, MdAnchor} from 'angular2_material/src/components/button/button';
|
||||
|
||||
@ -37,7 +37,7 @@ export function main() {
|
||||
// Need to use the real XHR implementation (instead of the mock) so we can actually request
|
||||
// the template files, since Angular 2 doesn't have anything like $templateCache. This should
|
||||
// eventually be replaced with a preprocessor that inlines templates.
|
||||
bind(XHR).toClass(XHRImpl)
|
||||
provide(XHR, {asClass: XHRImpl})
|
||||
]);
|
||||
|
||||
beforeEach(inject([TestComponentBuilder], (tcb) => { builder = tcb; }));
|
||||
|
Reference in New Issue
Block a user