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-04-28 20:50:03 -04:00
|
|
|
export * from './testing/schema_registry_mock';
|
|
|
|
export * from './testing/view_resolver_mock';
|
|
|
|
export * from './testing/test_component_builder';
|
|
|
|
export * from './testing/directive_resolver_mock';
|
2016-07-18 06:50:31 -04:00
|
|
|
export * from './testing/ng_module_resolver_mock';
|
|
|
|
|
|
|
|
import {createPlatformFactory, CompilerOptions, PlatformRef} from '@angular/core';
|
2016-07-26 08:21:19 -04:00
|
|
|
import {platformCoreDynamic, DirectiveResolver, ViewResolver, NgModuleResolver} from './index';
|
2016-07-18 06:50:31 -04:00
|
|
|
import {MockViewResolver} from './testing/view_resolver_mock';
|
|
|
|
import {MockDirectiveResolver} from './testing/directive_resolver_mock';
|
|
|
|
import {MockNgModuleResolver} from './testing/ng_module_resolver_mock';
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Platform for dynamic tests
|
|
|
|
*
|
|
|
|
* @experimental
|
|
|
|
*/
|
2016-07-26 08:21:19 -04:00
|
|
|
export const platformCoreDynamicTesting =
|
|
|
|
createPlatformFactory(platformCoreDynamic, 'coreDynamicTesting', [{
|
2016-07-18 06:50:31 -04:00
|
|
|
provide: CompilerOptions,
|
|
|
|
useValue: {
|
|
|
|
providers: [
|
|
|
|
{provide: DirectiveResolver, useClass: MockDirectiveResolver},
|
|
|
|
{provide: ViewResolver, useClass: MockViewResolver},
|
|
|
|
{provide: NgModuleResolver, useClass: MockNgModuleResolver}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
multi: true
|
|
|
|
}]);
|