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