@ -8,7 +8,7 @@
|
||||
|
||||
import {PropertyBinding} from '@angular/upgrade/src/common/component_info';
|
||||
|
||||
export function main() {
|
||||
{
|
||||
describe('PropertyBinding', () => {
|
||||
it('should process a simple binding', () => {
|
||||
const binding = new PropertyBinding('someBinding', 'someBinding');
|
||||
|
@ -12,7 +12,7 @@ import {DowngradeComponentAdapter, groupNodesBySelector} from '@angular/upgrade/
|
||||
|
||||
import {nodes} from './test_helpers';
|
||||
|
||||
export function main() {
|
||||
{
|
||||
describe('DowngradeComponentAdapter', () => {
|
||||
describe('groupNodesBySelector', () => {
|
||||
it('should return an array of node collections for each selector', () => {
|
||||
|
@ -9,7 +9,7 @@
|
||||
import {INJECTOR_KEY} from '@angular/upgrade/src/common/constants';
|
||||
import {downgradeInjectable} from '@angular/upgrade/src/common/downgrade_injectable';
|
||||
|
||||
export function main() {
|
||||
{
|
||||
describe('downgradeInjectable', () => {
|
||||
it('should return an AngularJS annotated factory for the token', () => {
|
||||
const factory = downgradeInjectable('someToken');
|
||||
|
@ -14,7 +14,7 @@ import * as angular from '@angular/upgrade/src/common/angular1';
|
||||
import {UpgradeAdapter, UpgradeAdapterRef} from '@angular/upgrade/src/dynamic/upgrade_adapter';
|
||||
import {$digest, html, multiTrim} from './test_helpers';
|
||||
|
||||
export function main() {
|
||||
{
|
||||
describe('adapter: ng1 to ng2', () => {
|
||||
beforeEach(() => destroyPlatform());
|
||||
afterEach(() => destroyPlatform());
|
||||
|
@ -9,7 +9,7 @@
|
||||
import {Ng1Token} from '@angular/upgrade/src/common/angular1';
|
||||
import {compileFactory, injectorFactory, parseFactory, rootScopeFactory, setTempInjectorRef} from '@angular/upgrade/src/static/angular1_providers';
|
||||
|
||||
export function main() {
|
||||
{
|
||||
describe('upgrade angular1_providers', () => {
|
||||
describe('compileFactory', () => {
|
||||
it('should retrieve and return `$compile`', () => {
|
||||
|
@ -15,7 +15,7 @@ import {UpgradeComponent, UpgradeModule, downgradeComponent} from '@angular/upgr
|
||||
|
||||
import {bootstrap, html} from '../test_helpers';
|
||||
|
||||
export function main() {
|
||||
{
|
||||
describe('scope/component change-detection', () => {
|
||||
beforeEach(() => destroyPlatform());
|
||||
afterEach(() => destroyPlatform());
|
||||
|
@ -15,7 +15,7 @@ import {UpgradeComponent, UpgradeModule, downgradeComponent} from '@angular/upgr
|
||||
|
||||
import {bootstrap, html, multiTrim} from '../test_helpers';
|
||||
|
||||
export function main() {
|
||||
{
|
||||
describe('content projection', () => {
|
||||
|
||||
beforeEach(() => destroyPlatform());
|
||||
|
@ -15,7 +15,7 @@ import {UpgradeModule, downgradeComponent} from '@angular/upgrade/static';
|
||||
|
||||
import {$apply, bootstrap, html, multiTrim} from '../test_helpers';
|
||||
|
||||
export function main() {
|
||||
{
|
||||
describe('downgrade ng2 component', () => {
|
||||
|
||||
beforeEach(() => destroyPlatform());
|
||||
|
@ -19,7 +19,7 @@ import {downgradeComponent, downgradeModule} from '@angular/upgrade/static';
|
||||
import {html, multiTrim} from '../test_helpers';
|
||||
|
||||
|
||||
export function main() {
|
||||
{
|
||||
[true, false].forEach(propagateDigest => {
|
||||
describe(`lazy-load ng2 module (propagateDigest: ${propagateDigest})`, () => {
|
||||
|
||||
|
@ -15,7 +15,7 @@ import {UpgradeComponent, UpgradeModule, downgradeComponent} from '@angular/upgr
|
||||
|
||||
import {bootstrap, html, multiTrim} from '../test_helpers';
|
||||
|
||||
export function main() {
|
||||
{
|
||||
describe('examples', () => {
|
||||
|
||||
beforeEach(() => destroyPlatform());
|
||||
|
@ -16,7 +16,7 @@ import {UpgradeModule, downgradeInjectable, getAngularJSGlobal, setAngularJSGlob
|
||||
|
||||
import {bootstrap, html} from '../test_helpers';
|
||||
|
||||
export function main() {
|
||||
{
|
||||
describe('injection', () => {
|
||||
|
||||
beforeEach(() => destroyPlatform());
|
||||
|
@ -16,7 +16,7 @@ import {UpgradeModule} from '@angular/upgrade/static';
|
||||
|
||||
import {bootstrap, html} from '../test_helpers';
|
||||
|
||||
export function main() {
|
||||
{
|
||||
describe('testability', () => {
|
||||
|
||||
beforeEach(() => destroyPlatform());
|
||||
|
@ -16,7 +16,7 @@ import {UpgradeComponent, UpgradeModule, downgradeComponent} from '@angular/upgr
|
||||
|
||||
import {$digest, bootstrap, html, multiTrim} from '../test_helpers';
|
||||
|
||||
export function main() {
|
||||
{
|
||||
describe('upgrade ng1 component', () => {
|
||||
|
||||
beforeEach(() => destroyPlatform());
|
||||
|
Reference in New Issue
Block a user