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
|
|
|
|
|
*/
|
|
|
|
|
|
2017-08-03 12:33:29 -07:00
|
|
|
import {NgModule, PlatformRef, StaticProvider, createPlatformFactory} from '@angular/core';
|
2017-08-16 09:00:03 -07:00
|
|
|
import {BrowserDynamicTestingModule, ɵplatformCoreDynamicTesting as platformCoreDynamicTesting} from '@angular/platform-browser-dynamic/testing';
|
2017-03-13 17:31:03 -07:00
|
|
|
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
|
2017-02-17 12:55:55 -08:00
|
|
|
import {ɵINTERNAL_SERVER_PLATFORM_PROVIDERS as INTERNAL_SERVER_PLATFORM_PROVIDERS, ɵSERVER_RENDER_PROVIDERS as SERVER_RENDER_PROVIDERS} from '@angular/platform-server';
|
2015-12-15 16:38:27 -08:00
|
|
|
|
2016-08-04 11:31:58 -07:00
|
|
|
|
2016-07-11 14:01:11 -07:00
|
|
|
/**
|
2016-07-18 03:50:31 -07:00
|
|
|
* Platform for testing
|
|
|
|
|
*
|
2018-10-19 12:12:20 +01:00
|
|
|
* @publicApi
|
2016-07-11 14:01:11 -07:00
|
|
|
*/
|
2016-07-26 05:21:19 -07:00
|
|
|
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
|
|
|
*
|
2018-10-19 12:12:20 +01:00
|
|
|
* @publicApi
|
2016-07-04 09:37:30 -07:00
|
|
|
*/
|
2017-03-13 17:31:03 -07:00
|
|
|
@NgModule({
|
|
|
|
|
exports: [BrowserDynamicTestingModule],
|
|
|
|
|
imports: [NoopAnimationsModule],
|
|
|
|
|
providers: SERVER_RENDER_PROVIDERS
|
|
|
|
|
})
|
2016-07-18 03:50:31 -07:00
|
|
|
export class ServerTestingModule {
|
|
|
|
|
}
|