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';
|
|
|
|
import {coreDynamicPlatform, DirectiveResolver, ViewResolver, NgModuleResolver} from './index';
|
|
|
|
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
|
|
|
|
*/
|
|
|
|
export const coreDynamicTestingPlatform =
|
|
|
|
createPlatformFactory(coreDynamicPlatform, 'coreDynamicTesting', [{
|
|
|
|
provide: CompilerOptions,
|
|
|
|
useValue: {
|
|
|
|
providers: [
|
|
|
|
{provide: DirectiveResolver, useClass: MockDirectiveResolver},
|
|
|
|
{provide: ViewResolver, useClass: MockViewResolver},
|
|
|
|
{provide: NgModuleResolver, useClass: MockNgModuleResolver}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
multi: true
|
|
|
|
}]);
|