UNPKG

angular2

Version:

Angular 2 - a web framework for modern web apps

17 lines (16 loc) 799 B
import { TEST_BROWSER_STATIC_PLATFORM_PROVIDERS, ADDITIONAL_TEST_BROWSER_PROVIDERS } from 'angular2/platform/testing/browser_static'; import { BROWSER_APP_PROVIDERS } from 'angular2/platform/browser'; import { CONST_EXPR } from 'angular2/src/facade/lang'; /** * Providers for using template cache to avoid actual XHR. * Re-exported here so that tests import from a single place. */ export { CACHED_TEMPLATE_PROVIDER } from 'angular2/platform/browser'; /** * Default platform providers for testing. */ export const TEST_BROWSER_PLATFORM_PROVIDERS = CONST_EXPR([TEST_BROWSER_STATIC_PLATFORM_PROVIDERS]); /** * Default application providers for testing. */ export const TEST_BROWSER_APPLICATION_PROVIDERS = CONST_EXPR([BROWSER_APP_PROVIDERS, ADDITIONAL_TEST_BROWSER_PROVIDERS]);