chore(test): add config for pub serve testing.

Closes #5580

Closes #5580
This commit is contained in:
Kevin Moore
2015-12-03 12:00:10 -08:00
committed by Jeremy Elbourn
parent 1710272b3c
commit 1edb17b8d0
3 changed files with 14 additions and 5 deletions

View File

@ -41,7 +41,8 @@ void main() {
expect(string.split(','), equals(['foo', 'bar', 'baz']));
});
ngTest('can grab injected values', (@Inject(MyToken) token, TestService testService) {
ngTest('can grab injected values',
(@Inject(MyToken) token, TestService testService) {
expect(token, equals('my string'));
expect(testService.status, equals('not ready'));
});
@ -56,7 +57,8 @@ void main() {
});
});
ngTest('create a component using the TestComponentBuilder', (TestComponentBuilder tcb) async {
ngTest('create a component using the TestComponentBuilder',
(TestComponentBuilder tcb) async {
var rootTC = await tcb
.overrideTemplate(TestComponent, TEMPLATE)
.createAsync(TestComponent);