From 703611ff7239589a545ada911fae5ff3b822c464 Mon Sep 17 00:00:00 2001 From: Shuhei Kagawa Date: Tue, 3 May 2016 15:02:17 +0900 Subject: [PATCH] chore(package): test against angular2 rc.0 --- package.json | 6 +++++- test/integration/component.spec.js | 8 ++++---- test/integration/init.js | 12 ++++++------ .../parameter-decorator-alternative.spec.js | 10 +++++----- test/integration/reflection.spec.js | 4 ++-- 5 files changed, 22 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 755c8b6..fd970e0 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,11 @@ "author": "Shuhei Kagawa ", "license": "ISC", "devDependencies": { - "angular2": "2.0.0-beta.17", + "@angular/common": "2.0.0-rc.0", + "@angular/compiler": "2.0.0-rc.0", + "@angular/core": "2.0.0-rc.0", + "@angular/platform-browser": "2.0.0-rc.0", + "@angular/platform-browser-dynamic": "^2.0.0-rc.0", "babel-cli": "^6.7.7", "babel-core": "^6.7.7", "babel-eslint": "^6.0.4", diff --git a/test/integration/component.spec.js b/test/integration/component.spec.js index 5c26b11..5a34405 100644 --- a/test/integration/component.spec.js +++ b/test/integration/component.spec.js @@ -3,16 +3,16 @@ import { View, Input, ViewMetadata -} from 'angular2/core'; +} from '@angular/core'; import { beforeEach, describe, expect, inject, it, - async, - TestComponentBuilder -} from 'angular2/testing'; + async +} from '@angular/core/testing'; +import {TestComponentBuilder} from '@angular/compiler/testing' describe('component', () => { it('works with class/prop/param decorators and type annotations', async(inject([TestComponentBuilder], (tcb) => { diff --git a/test/integration/init.js b/test/integration/init.js index 3fba4a7..ef066e3 100644 --- a/test/integration/init.js +++ b/test/integration/init.js @@ -7,11 +7,11 @@ import 'zone.js/dist/jasmine-patch'; import 'zone.js/dist/async-test'; import 'zone.js/dist/fake-async-test'; -import {setBaseTestProviders} from 'angular2/testing'; +import {setBaseTestProviders} from '@angular/core/testing'; import { - TEST_BROWSER_PLATFORM_PROVIDERS, - TEST_BROWSER_APPLICATION_PROVIDERS -} from 'angular2/platform/testing/browser'; + TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS, + TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS +} from '@angular/platform-browser-dynamic/testing'; -setBaseTestProviders(TEST_BROWSER_PLATFORM_PROVIDERS, - TEST_BROWSER_APPLICATION_PROVIDERS); +setBaseTestProviders(TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS, + TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS); diff --git a/test/integration/parameter-decorator-alternative.spec.js b/test/integration/parameter-decorator-alternative.spec.js index 2ace3e6..9d6a3d0 100644 --- a/test/integration/parameter-decorator-alternative.spec.js +++ b/test/integration/parameter-decorator-alternative.spec.js @@ -5,10 +5,10 @@ import { AttributeMetadata, QueryMetadata, ViewQueryMetadata, InjectMetadata, OptionalMetadata, SelfMetadata, SkipSelfMetadata, HostMetadata, PLATFORM_DIRECTIVES -} from 'angular2/core'; +} from '@angular/core'; import { NgFor -} from 'angular2/common'; +} from '@angular/common'; import { beforeEach, describe, @@ -16,9 +16,9 @@ import { inject, it, xit, - async, - TestComponentBuilder, -} from 'angular2/testing'; + async +} from '@angular/core/testing'; +import {TestComponentBuilder} from '@angular/compiler/testing'; describe('parameter decorator alternatives', () => { describe('Directive DI', () => { diff --git a/test/integration/reflection.spec.js b/test/integration/reflection.spec.js index ed3a815..2404760 100644 --- a/test/integration/reflection.spec.js +++ b/test/integration/reflection.spec.js @@ -2,7 +2,7 @@ import { describe, expect, it -} from 'angular2/testing'; +} from '@angular/core/testing'; import { EventEmitter, @@ -14,7 +14,7 @@ import { OutputMetadata, OptionalMetadata, reflector -} from 'angular2/core'; +} from '@angular/core'; describe('reflection', () => { it('supports class decorator', () => {