Skip to content

Commit

Permalink
chore(package): test against angular2 rc.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhei committed May 3, 2016
1 parent b4f55ae commit 703611f
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
"author": "Shuhei Kagawa <shuhei.kagawa@gmail.com>",
"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",
Expand Down
8 changes: 4 additions & 4 deletions test/integration/component.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
12 changes: 6 additions & 6 deletions test/integration/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
10 changes: 5 additions & 5 deletions test/integration/parameter-decorator-alternative.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ 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,
expect,
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', () => {
Expand Down
4 changes: 2 additions & 2 deletions test/integration/reflection.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
describe,
expect,
it
} from 'angular2/testing';
} from '@angular/core/testing';

import {
EventEmitter,
Expand All @@ -14,7 +14,7 @@ import {
OutputMetadata,
OptionalMetadata,
reflector
} from 'angular2/core';
} from '@angular/core';

describe('reflection', () => {
it('supports class decorator', () => {
Expand Down

0 comments on commit 703611f

Please sign in to comment.