Files
angular-docs-cn/modules/@angular/platform-server/testing/server.ts
T

32 lines
1.0 KiB
TypeScript
Raw Normal View History

/**
* @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
*/
import {platformCoreDynamicTesting} from '@angular/compiler/testing';
2016-09-27 17:12:25 -07:00
import {NgModule, PlatformRef, Provider, createPlatformFactory} from '@angular/core';
import {BrowserDynamicTestingModule} from '@angular/platform-browser-dynamic/testing';
2016-11-03 11:16:28 -07:00
import {INTERNAL_SERVER_PLATFORM_PROVIDERS, SERVER_RENDER_PROVIDERS} from './private_import_platform_server';
/**
2016-07-18 03:50:31 -07:00
* Platform for testing
*
* @experimental API related to bootstrapping are still under review.
*/
export const platformServerTesting = createPlatformFactory(
platformCoreDynamicTesting, 'serverTesting', INTERNAL_SERVER_PLATFORM_PROVIDERS);
2016-07-04 09:37:30 -07:00
/**
2016-07-18 03:50:31 -07:00
* NgModule for testing.
2016-07-04 09:37:30 -07:00
*
* @experimental API related to bootstrapping are still under review.
*/
@NgModule({exports: [BrowserDynamicTestingModule], providers: SERVER_RENDER_PROVIDERS})
2016-07-18 03:50:31 -07:00
export class ServerTestingModule {
}