2016-06-23 12:47:54 -04:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
2016-06-08 19:38:52 -04:00
|
|
|
import {ElementSchemaRegistry, UrlResolver, XHR} from '@angular/compiler';
|
2016-04-28 20:50:03 -04:00
|
|
|
import {createUrlResolverWithoutPackagePrefix} from '@angular/compiler/src/url_resolver';
|
2016-06-23 18:52:18 -04:00
|
|
|
import {MockSchemaRegistry} from '@angular/compiler/testing';
|
|
|
|
import {MockXHR} from '@angular/compiler/testing/xhr_mock';
|
2015-09-14 18:59:09 -04:00
|
|
|
|
2016-04-28 20:50:03 -04:00
|
|
|
export var TEST_PROVIDERS: any[] = [
|
2016-06-02 20:30:40 -04:00
|
|
|
{provide: ElementSchemaRegistry, useValue: new MockSchemaRegistry({}, {})},
|
|
|
|
{provide: XHR, useClass: MockXHR},
|
|
|
|
{provide: UrlResolver, useFactory: createUrlResolverWithoutPackagePrefix}
|
2015-10-12 13:23:51 -04:00
|
|
|
];
|