2016-06-23 09:47:54 -07: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 16:38:52 -07:00
|
|
|
import {ElementSchemaRegistry, UrlResolver, XHR} from '@angular/compiler';
|
2016-04-28 17:50:03 -07:00
|
|
|
import {createUrlResolverWithoutPackagePrefix} from '@angular/compiler/src/url_resolver';
|
2016-06-23 15:52:18 -07:00
|
|
|
import {MockSchemaRegistry} from '@angular/compiler/testing';
|
|
|
|
import {MockXHR} from '@angular/compiler/testing/xhr_mock';
|
2015-09-14 15:59:09 -07:00
|
|
|
|
2016-04-28 17:50:03 -07:00
|
|
|
export var TEST_PROVIDERS: any[] = [
|
2016-06-02 17:30:40 -07:00
|
|
|
{provide: ElementSchemaRegistry, useValue: new MockSchemaRegistry({}, {})},
|
|
|
|
{provide: XHR, useClass: MockXHR},
|
|
|
|
{provide: UrlResolver, useFactory: createUrlResolverWithoutPackagePrefix}
|
2015-10-12 10:23:51 -07:00
|
|
|
];
|