From 5face35ae54b2fe8409836961d26c15700615591 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Wed, 22 Jun 2016 14:50:12 -0700 Subject: [PATCH] refactor: misc cleanup --- modules/@angular/core/test/application_ref_spec.ts | 4 ++-- .../@angular/core/test/forward_ref_integration_spec.ts | 8 ++------ modules/@angular/core/test/testing_internal_spec.ts | 1 - 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/modules/@angular/core/test/application_ref_spec.ts b/modules/@angular/core/test/application_ref_spec.ts index a7d2a7d07f..e9f19adb48 100644 --- a/modules/@angular/core/test/application_ref_spec.ts +++ b/modules/@angular/core/test/application_ref_spec.ts @@ -142,6 +142,6 @@ class _MockComponentRef extends ComponentRef_ { } class _MockConsole implements Console { - log(message: any /** TODO #9100 */) {} - warn(message: any /** TODO #9100 */) {} + log(message: string) {} + warn(message: string) {} } diff --git a/modules/@angular/core/test/forward_ref_integration_spec.ts b/modules/@angular/core/test/forward_ref_integration_spec.ts index fd7569c0e0..19e93b9813 100644 --- a/modules/@angular/core/test/forward_ref_integration_spec.ts +++ b/modules/@angular/core/test/forward_ref_integration_spec.ts @@ -5,8 +5,6 @@ import {asNativeElements} from '@angular/core'; import {beforeEach, ddescribe, describe, expect, iit, inject, it, xit} from '@angular/core/testing/testing_internal'; import {AsyncTestCompleter} from '@angular/core/testing/testing_internal'; -import {Type} from '../src/facade/lang'; - export function main() { describe('forwardRef integration', function() { it('should instantiate components which are declared using forwardRef', @@ -49,12 +47,10 @@ class Door { } class Frame { - name: string; - constructor() { this.name = 'frame'; } + name: string = 'frame'; } @Directive({selector: 'lock'}) class Lock { - name: string; - constructor() { this.name = 'lock'; } + name: string = 'lock'; } diff --git a/modules/@angular/core/test/testing_internal_spec.ts b/modules/@angular/core/test/testing_internal_spec.ts index 2286d6b0d4..bd0beb0122 100644 --- a/modules/@angular/core/test/testing_internal_spec.ts +++ b/modules/@angular/core/test/testing_internal_spec.ts @@ -14,7 +14,6 @@ class SpyTestObj extends SpyObject { constructor() { super(TestObj); } } - export function main() { describe('testing', () => { describe('equality', () => {