Skip to content

Commit 04d36af

Browse files
JohnCashmoremgechev
authored andcommitted
Update to release beta.16 (mgechev#791)
* chore(release): bump version to beta.16 * test(release): update tests in line with new release * fix(APP_BASE_HREF): update reference to APP_BASE_HREF * fix(release): async completer removed not required
1 parent 9a41f23 commit 04d36af

File tree

5 files changed

+22
-17
lines changed

5 files changed

+22
-17
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@
110110
"yargs": "^4.2.0"
111111
},
112112
"dependencies": {
113-
"angular2": "2.0.0-beta.15",
113+
"angular2": "2.0.0-beta.16",
114114
"es6-module-loader": "^0.17.8",
115115
"es6-promise": "^3.1.2",
116116
"es6-shim": "0.35.0",
117117
"reflect-metadata": "0.1.2",
118118
"rxjs": "5.0.0-beta.2",
119119
"systemjs": "~0.19.25",
120-
"zone.js": "^0.6.10"
120+
"zone.js": "^0.6.12"
121121
}
122122
}

src/client/app/+about/components/about.component.spec.ts

+7-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
TestComponentBuilder,
33
describe,
44
expect,
5-
injectAsync,
5+
inject,
66
it
77
} from 'angular2/testing';
88
import {Component} from 'angular2/core';
@@ -11,16 +11,18 @@ import {AboutComponent} from './about.component';
1111

1212
export function main() {
1313
describe('About component', () => {
14+
15+
1416
it('should work',
15-
injectAsync([TestComponentBuilder], (tcb: TestComponentBuilder) => {
16-
return tcb.createAsync(TestComponent)
17+
inject([TestComponentBuilder], (tcb: TestComponentBuilder) => {
18+
tcb.createAsync(TestComponent)
1719
.then((rootTC: any) => {
1820
let aboutDOMEl = rootTC.debugElement.children[0].nativeElement;
1921

2022
expect(DOM.querySelectorAll(aboutDOMEl, 'h2')[0].textContent).toEqual('Features');
2123
});
22-
}));
23-
});
24+
}));
25+
});
2426
}
2527

2628
@Component({

src/client/app/+home/components/home.component.spec.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import {
22
TestComponentBuilder,
33
describe,
44
expect,
5-
injectAsync,
6-
it
5+
it,
6+
inject
77
} from 'angular2/testing';
88
import {Component} from 'angular2/core';
99
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
@@ -14,8 +14,8 @@ import {NameListService} from '../../shared/index';
1414
export function main() {
1515
describe('Home component', () => {
1616
it('should work',
17-
injectAsync([TestComponentBuilder], (tcb: TestComponentBuilder) => {
18-
return tcb.createAsync(TestComponent)
17+
inject([TestComponentBuilder], (tcb: TestComponentBuilder) => {
18+
tcb.createAsync(TestComponent)
1919
.then(rootTC => {
2020
rootTC.detectChanges();
2121

src/client/app/components/app.component.spec.ts

+7-5
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ import {
22
TestComponentBuilder,
33
describe,
44
expect,
5-
injectAsync,
5+
inject,
66
it,
77
beforeEachProviders
88
} from 'angular2/testing';
9-
import {Component, provide, DirectiveResolver} from 'angular2/core';
9+
import {Component, provide} from 'angular2/core';
10+
import {DirectiveResolver} from 'angular2/compiler';
1011

11-
import {Location, Router, RouteRegistry, ROUTER_PRIMARY_COMPONENT} from 'angular2/router';
12+
import {Router, RouteRegistry, ROUTER_PRIMARY_COMPONENT} from 'angular2/router';
13+
import {Location} from 'angular2/platform/common';
1214
import {SpyLocation} from 'angular2/src/mock/location_mock';
1315
import {RootRouter} from 'angular2/src/router/router';
1416

@@ -29,8 +31,8 @@ export function main() {
2931
]);
3032

3133
it('should work',
32-
injectAsync([TestComponentBuilder], (tcb: TestComponentBuilder) => {
33-
return tcb.createAsync(TestComponent)
34+
inject([TestComponentBuilder], (tcb: TestComponentBuilder) => {
35+
tcb.createAsync(TestComponent)
3436
.then(rootTC => {
3537
rootTC.detectChanges();
3638
let appDOMEl = rootTC.debugElement.children[0].nativeElement;

src/client/main.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {provide, enableProdMode} from 'angular2/core';
22
import {bootstrap} from 'angular2/platform/browser';
3-
import {ROUTER_PROVIDERS, APP_BASE_HREF} from 'angular2/router';
3+
import {ROUTER_PROVIDERS} from 'angular2/router';
4+
import {APP_BASE_HREF} from 'angular2/platform/common';
45
import {AppComponent} from './app/components/app.component';
56

67
if ('<%= ENV %>' === 'prod') { enableProdMode(); }

0 commit comments

Comments
 (0)