feat(router): update router to support lazy loading

This commit is contained in:
vsavkin
2016-05-03 16:45:30 -07:00
parent c0cfd3c6ed
commit 0f1465b899
5 changed files with 43 additions and 24 deletions

View File

@ -41,6 +41,15 @@ export function main() {
return null;
});
}));
it('should throw when given a string',
inject([AsyncTestCompleter, ComponentResolver], (async, compiler: ComponentResolver) => {
compiler.resolveComponent("someString")
.catch((e) => {
expect(e.message).toContain("Cannot resolve component using 'someString'.")
async.done();
});
}));
});
}